File tree Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -3363,10 +3363,12 @@ update_popups(void (*win_update)(win_T *wp))
3363
3363
// Compute scrollbar thumb position and size.
3364
3364
if (wp -> w_has_scrollbar )
3365
3365
{
3366
- linenr_T linecount = wp -> w_buffer -> b_ml .ml_line_count ;
3366
+ linenr_T linecount = wp -> w_buffer -> b_ml .ml_line_count ;
3367
+ int height = wp -> w_height ;
3367
3368
3368
- sb_thumb_height = (wp -> w_height * wp -> w_height + linecount / 2 )
3369
- / linecount ;
3369
+ sb_thumb_height = (height * height + linecount / 2 ) / linecount ;
3370
+ if (wp -> w_topline > 1 && sb_thumb_height == height )
3371
+ -- sb_thumb_height ; // scrolled, no full thumb
3370
3372
if (sb_thumb_height == 0 )
3371
3373
sb_thumb_height = 1 ;
3372
3374
if (linecount <= wp -> w_height )
@@ -3377,6 +3379,9 @@ update_popups(void (*win_update)(win_T *wp))
3377
3379
+ (linecount / wp -> w_height ) / 2 )
3378
3380
* (wp -> w_height - sb_thumb_height )
3379
3381
/ (linecount - wp -> w_height );
3382
+ if (wp -> w_topline > 1 && sb_thumb_top == 0 && height > 1 )
3383
+ sb_thumb_top = 1 ; // show it's scrolled
3384
+
3380
3385
if (wp -> w_scrollbar_highlight != NULL )
3381
3386
attr_scroll = syn_name2attr (wp -> w_scrollbar_highlight );
3382
3387
else
Original file line number Diff line number Diff line change 1
1
>1+0&#ffffff0| @73
2
2
|2| @73
3
3
|3| @73
4
- |4| @31|t+0#0000001#ffd7ff255|w|o| @4| +0#0000000#0000001 | +0&#ffffff0@32
4
+ |4| @31|t+0#0000001#ffd7ff255|w|o| @4| +0#0000000#a8a8a8255 | +0&#ffffff0@32
5
5
|5| @31|t+0#0000001#ffd7ff255|h|r|e@1| @2| +0#0000000#0000001| +0&#ffffff0@32
6
- |6| @31|f+0#0000001#ffd7ff255|o|u|r| @3| +0#0000000#a8a8a8255 | +0&#ffffff0@32
6
+ |6| @31|f+0#0000001#ffd7ff255|o|u|r| @3| +0#0000000#0000001 | +0&#ffffff0@32
7
7
|7| @31|f+0#0000001#ffd7ff255|i|v|e| @3| +0#0000000#a8a8a8255| +0&#ffffff0@32
8
8
|8| @73
9
9
|9| @73
Original file line number Diff line number Diff line change @@ -757,6 +757,8 @@ static char *(features[]) =
757
757
758
758
static int included_patches [] =
759
759
{ /* Add new patch number below this line */
760
+ /**/
761
+ 2032 ,
760
762
/**/
761
763
2031 ,
762
764
/**/
You can’t perform that action at this time.
0 commit comments