micro icon indicating copy to clipboard operation
micro copied to clipboard

termwindow: Show cursor only when his X and Y axis is smaller than the window size

Open JoeKar opened this issue 1 year ago • 5 comments

This will prevent showing the cursor over the terminal windows own status bar.

Fixes #3034

JoeKar avatar Nov 23 '23 19:11 JoeKar

Updated again after realizing that the same is reproducible with vsplit and the term at the left tab.

JoeKar avatar Nov 23 '23 20:11 JoeKar

It seems that it affects any vsplit even without terms....

screen-1701601607 screen-1701601708

I know micro's internal structure bad but let me guess. I think it is because the left pane gets zero size so the right pane think that it is size is size of full window but micro still draws separator... As you can see from two following screenshots the divider is drawn above actual pane

screen-1701601991

screen-1701602006

dustdfg avatar Dec 03 '23 11:12 dustdfg

I am not sure I even didn't looked at code of #3069 but it seems so me that it can be related in some way

dustdfg avatar Dec 03 '23 11:12 dustdfg

In non-term windows it will be solved with @dmaluka's PR (#3069) too. At least I wasn't able to reproduce it any longer.

JoeKar avatar Dec 03 '23 11:12 JoeKar

At least I wasn't able to reproduce it any longer.

I also couldn't but I just decided to perform stress test and see what will happen if I open more vsplits than width of the terminal. As expected I got the behavior of #3071 but it also smashed all the splits to visually one with self cursor highlighting

screen-1701601708

But it doesn't give anything new

dustdfg avatar Dec 03 '23 20:12 dustdfg