File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,9 @@ comp_botline(wp)
107
107
wp -> w_cline_folded = folded ;
108
108
#endif
109
109
redraw_for_cursorline (wp );
110
+ #ifdef FEATU_GUI_MACVIM
111
+ redraw_for_ligatures (wp );
112
+ #endif
110
113
wp -> w_valid |= (VALID_CROW |VALID_CHEIGHT );
111
114
}
112
115
if (done + n > wp -> w_height )
@@ -145,6 +148,29 @@ redraw_for_cursorline(wp)
145
148
redraw_win_later (wp , SOME_VALID );
146
149
}
147
150
151
+ #ifdef FEAT_GUI_MACVIM
152
+ /*
153
+ * Redraw when 'macliguters' is set.
154
+ * This is basically the same as when 'cursorline'
155
+ * or 'relativenumber' is set but unconditional.
156
+ */
157
+ static void
158
+ redraw_for_ligatures (wp )
159
+ win_T * wp ;
160
+ {
161
+ /* Only if ligatures are on but neither
162
+ * 'cursorline' nor 'relativenumber'.
163
+ */
164
+ if (p_macligatures
165
+ && (wp -> w_p_rnu == 0
166
+ #ifdef FEAT_SYN_HL
167
+ || wp -> w_p_cul == 0
168
+ #endif
169
+ ))
170
+ redraw_win_later (wp , CLEAR );
171
+ }
172
+ #endif
173
+
148
174
/*
149
175
* Update curwin->w_topline and redraw if necessary.
150
176
* Used to update the screen before printing a message.
@@ -793,6 +819,9 @@ curs_rows(wp)
793
819
}
794
820
795
821
redraw_for_cursorline (curwin );
822
+ #ifdef FEAT_GUI_MACVIM
823
+ redraw_for_ligatures (curwin );
824
+ #endif
796
825
wp -> w_valid |= VALID_CROW |VALID_CHEIGHT ;
797
826
798
827
}
You can’t perform that action at this time.
0 commit comments