diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-03-01 23:01:09 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-03-02 00:35:52 -0500 |
commit | f32acc70e84a3ea4a61e856e4d723ccc433e687c (patch) | |
tree | 0744a8c90289f7a7c98c0c5b242e3cd13b4d50c4 /src/nvim/ex_cmds2.c | |
parent | a5bacdbfb4f10652598d45e339c9f670b477ac8d (diff) | |
download | rneovim-f32acc70e84a3ea4a61e856e4d723ccc433e687c.tar.gz rneovim-f32acc70e84a3ea4a61e856e4d723ccc433e687c.tar.bz2 rneovim-f32acc70e84a3ea4a61e856e4d723ccc433e687c.zip |
vim-patch:8.2.2236: 'scroll' option can change when setting the statusline
Problem: 'scroll' option can change when setting the statusline or tabline
but the option context is not updated.
Solution: Update the script context when the scroll option is changed as a
side effect. (Christian Brabandt, closes vim/vim#7533)
https://github.com/vim/vim/commit/746670604a60cb0356b56c112ffb6d297c679099
Diffstat (limited to 'src/nvim/ex_cmds2.c')
-rw-r--r-- | src/nvim/ex_cmds2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c index c24ecde096..c4c18c4324 100644 --- a/src/nvim/ex_cmds2.c +++ b/src/nvim/ex_cmds2.c @@ -3024,6 +3024,7 @@ void scriptnames_slash_adjust(void) # endif /// Get a pointer to a script name. Used for ":verbose set". +/// Message appended to "Last set from " char_u *get_scriptname(LastSet last_set, bool *should_free) { *should_free = false; @@ -3039,6 +3040,8 @@ char_u *get_scriptname(LastSet last_set, bool *should_free) return (char_u *)_("environment variable"); case SID_ERROR: return (char_u *)_("error handler"); + case SID_WINLAYOUT: + return (char_u *)_("changed window size"); case SID_LUA: return (char_u *)_("Lua"); case SID_API_CLIENT: |