mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 16:28:17 +00:00
refactor(redraw): no type argument in update_screen()
This was used in the past with assumption that curwin/curbuf is "special" but this has not been true since basically forever at this point. Reduce NOT_VALID/CLEAR panic in options.lua . These should not be set if an effect of the option is causing something which by itself invokes redraw_later().
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
-- lists: (nil), comma, onecomma, flags, flagscomma
|
||||
-- scopes: global, buffer, window
|
||||
-- redraw options: statuslines, current_window, curent_window_only,
|
||||
-- current_buffer, all_windows, everything, curswant
|
||||
-- current_buffer, all_windows, curswant
|
||||
-- defaults: {condition=#if condition, if_true=default, if_false=default}
|
||||
-- #if condition:
|
||||
-- string: #ifdef string
|
||||
@@ -128,7 +128,6 @@ return {
|
||||
full_name='background', abbreviation='bg',
|
||||
short_desc=N_("\"dark\" or \"light\", used for highlight colors"),
|
||||
type='string', scope={'global'},
|
||||
redraw={'all_windows'},
|
||||
varname='p_bg',
|
||||
defaults={if_true="dark"}
|
||||
},
|
||||
@@ -395,7 +394,6 @@ return {
|
||||
short_desc=N_("number of columns in the display"),
|
||||
type='number', scope={'global'},
|
||||
no_mkrc=true,
|
||||
redraw={'everything'},
|
||||
varname='p_columns',
|
||||
defaults={if_true=macros('DFLT_COLS')}
|
||||
},
|
||||
@@ -422,7 +420,6 @@ return {
|
||||
full_name='compatible', abbreviation='cp',
|
||||
short_desc=N_("No description"),
|
||||
type='bool', scope={'global'},
|
||||
redraw={'all_windows'},
|
||||
varname='p_force_off',
|
||||
-- pri_mkrc isn't needed here, optval_default()
|
||||
-- always returns TRUE for 'compatible'
|
||||
@@ -708,7 +705,6 @@ return {
|
||||
full_name='equalalways', abbreviation='ea',
|
||||
short_desc=N_("windows are automatically made the same size"),
|
||||
type='bool', scope={'global'},
|
||||
redraw={'all_windows'},
|
||||
varname='p_ea',
|
||||
defaults={if_true=true}
|
||||
},
|
||||
@@ -1051,7 +1047,6 @@ return {
|
||||
full_name='guioptions', abbreviation='go',
|
||||
short_desc=N_("GUI: Which components and options are used"),
|
||||
type='string', list='flags', scope={'global'},
|
||||
redraw={'all_windows'},
|
||||
enable_if=false,
|
||||
},
|
||||
{
|
||||
@@ -1195,7 +1190,6 @@ return {
|
||||
full_name='inccommand', abbreviation='icm',
|
||||
short_desc=N_("Live preview of substitution"),
|
||||
type='string', scope={'global'},
|
||||
redraw={'all_windows'},
|
||||
varname='p_icm',
|
||||
defaults={if_true="nosplit"}
|
||||
},
|
||||
@@ -1403,7 +1397,6 @@ return {
|
||||
short_desc=N_("of lines in the display"),
|
||||
type='number', scope={'global'},
|
||||
no_mkrc=true,
|
||||
redraw={'everything'},
|
||||
varname='p_lines',
|
||||
defaults={if_true=macros('DFLT_ROWS')}
|
||||
},
|
||||
@@ -2023,7 +2016,6 @@ return {
|
||||
full_name='scrolloff', abbreviation='so',
|
||||
short_desc=N_("minimum nr. of lines above and below cursor"),
|
||||
type='number', scope={'global', 'window'},
|
||||
redraw={'all_windows'},
|
||||
varname='p_so',
|
||||
defaults={if_true=0}
|
||||
},
|
||||
@@ -2260,7 +2252,6 @@ return {
|
||||
full_name='sidescrolloff', abbreviation='siso',
|
||||
short_desc=N_("min. nr. of columns to left and right of cursor"),
|
||||
type='number', scope={'global', 'window'},
|
||||
redraw={'all_windows'},
|
||||
varname='p_siso',
|
||||
defaults={if_true=0}
|
||||
},
|
||||
@@ -2453,7 +2444,7 @@ return {
|
||||
short_desc=N_("custom format for the console tab pages line"),
|
||||
type='string', scope={'global'},
|
||||
modelineexpr=true,
|
||||
redraw={'all_windows'},
|
||||
redraw={'statuslines'},
|
||||
varname='p_tal',
|
||||
defaults={if_true=""}
|
||||
},
|
||||
|
Reference in New Issue
Block a user