@@ -555,7 +555,7 @@ win_redr_status(win_T *wp, int ignore_pum UNUSED)
555555 if (stl_connected (wp ))
556556 fillchar = fillchar_status (& attr , wp );
557557 else
558- fillchar = fillchar_vsep (& attr );
558+ fillchar = fillchar_vsep (& attr , wp );
559559 screen_putchar (fillchar , row , W_ENDCOL (wp ), attr );
560560 }
561561 busy = FALSE;
@@ -1038,7 +1038,7 @@ redraw_win_toolbar(win_T *wp)
10381038 }
10391039 wp -> w_winbar_items [item_idx ].wb_menu = NULL ; // end marker
10401040
1041- screen_line (wp -> w_winrow , wp -> w_wincol , wp -> w_width , wp -> w_width , 0 );
1041+ screen_line (wp , wp -> w_winrow , wp -> w_wincol , wp -> w_width , wp -> w_width , 0 );
10421042}
10431043#endif
10441044
@@ -1246,7 +1246,8 @@ fold_line(
12461246
12471247 txtcol = col ; // remember where text starts
12481248
1249- // 5. move the text to current_ScreenLine. Fill up with "fill_fold".
1249+ // 5. move the text to current_ScreenLine. Fill up with "fold" from
1250+ // 'fillchars'.
12501251 // Right-left text is put in columns 0 - number-col, normal text is put
12511252 // in columns number-col - window-width.
12521253 col = text_to_screenline (wp , text , col );
@@ -1262,23 +1263,25 @@ fold_line(
12621263#endif
12631264 )
12641265 {
1266+ int c = wp -> w_fill_chars .fold ;
1267+
12651268 if (enc_utf8 )
12661269 {
1267- if (fill_fold >= 0x80 )
1270+ if (c >= 0x80 )
12681271 {
1269- ScreenLinesUC [off + col ] = fill_fold ;
1272+ ScreenLinesUC [off + col ] = c ;
12701273 ScreenLinesC [0 ][off + col ] = 0 ;
12711274 ScreenLines [off + col ] = 0x80 ; // avoid storing zero
12721275 }
12731276 else
12741277 {
12751278 ScreenLinesUC [off + col ] = 0 ;
1276- ScreenLines [off + col ] = fill_fold ;
1279+ ScreenLines [off + col ] = c ;
12771280 }
12781281 col ++ ;
12791282 }
12801283 else
1281- ScreenLines [off + col ++ ] = fill_fold ;
1284+ ScreenLines [off + col ++ ] = c ;
12821285 }
12831286
12841287 if (text != buf )
@@ -1371,7 +1374,8 @@ fold_line(
13711374 }
13721375#endif
13731376
1374- screen_line (row + W_WINROW (wp ), wp -> w_wincol , wp -> w_width , wp -> w_width , 0 );
1377+ screen_line (wp , row + W_WINROW (wp ), wp -> w_wincol ,
1378+ wp -> w_width , wp -> w_width , 0 );
13751379
13761380 // Update w_cline_height and w_cline_folded if the cursor line was
13771381 // updated (saves a call to plines() later).
@@ -2669,10 +2673,10 @@ win_update(win_T *wp)
26692673 if (j > 0 && !wp -> w_botfill )
26702674 {
26712675 // Display filler lines at the end of the file.
2672- if (char2cells (fill_diff ) > 1 )
2676+ if (char2cells (wp -> w_fill_chars . diff ) > 1 )
26732677 i = '-' ;
26742678 else
2675- i = fill_diff ;
2679+ i = wp -> w_fill_chars . diff ;
26762680 if (row + j > wp -> w_height )
26772681 j = wp -> w_height - row ;
26782682 win_draw_end (wp , i , i , TRUE, row , row + (int )j , HLF_DED );
@@ -2683,12 +2687,14 @@ win_update(win_T *wp)
26832687 else if (dollar_vcol == -1 )
26842688 wp -> w_botline = lnum ;
26852689
2686- // Make sure the rest of the screen is blank
2687- // write the 'fill_eob' character to rows that aren't part of the file
2690+ // Make sure the rest of the screen is blank.
2691+ // write the "eob" character from 'fillchars' to rows that aren't part
2692+ // of the file.
26882693 if (WIN_IS_POPUP (wp ))
26892694 win_draw_end (wp , ' ' , ' ' , FALSE, row , wp -> w_height , HLF_AT );
26902695 else
2691- win_draw_end (wp , fill_eob , ' ' , FALSE, row , wp -> w_height , HLF_EOB );
2696+ win_draw_end (wp , wp -> w_fill_chars .eob , ' ' , FALSE,
2697+ row , wp -> w_height , HLF_EOB );
26922698 }
26932699
26942700#ifdef SYN_TIME_LIMIT
@@ -3026,7 +3032,7 @@ redraw_asap(int type)
30263032 mch_memmove (ScreenLines2 + off ,
30273033 screenline2 + r * cols ,
30283034 (size_t )cols * sizeof (schar_T ));
3029- screen_line (cmdline_row + r , 0 , cols , cols , 0 );
3035+ screen_line (curwin , cmdline_row + r , 0 , cols , cols , 0 );
30303036 }
30313037 ret = 4 ;
30323038 }
0 commit comments