diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-12-28 15:41:41 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-12-28 15:41:41 +0100 |
commit | 746670604a60cb0356b56c112ffb6d297c679099 (patch) | |
tree | bf0cdf7021500f0e39af0a7edb9d22dcc4bb9849 /src/scriptfile.c | |
parent | dace9f785fca6cc802b2fb7f11a5ee4fab896432 (diff) | |
download | vim-git-746670604a60cb0356b56c112ffb6d297c679099.tar.gz |
patch 8.2.2236: 'scroll' option can change when setting the statuslinev8.2.2236
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 #7533)
Diffstat (limited to 'src/scriptfile.c')
-rw-r--r-- | src/scriptfile.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/scriptfile.c b/src/scriptfile.c index 90d483b9e..a9b382590 100644 --- a/src/scriptfile.c +++ b/src/scriptfile.c @@ -1553,6 +1553,7 @@ scriptnames_slash_adjust(void) /* * Get a pointer to a script name. Used for ":verbose set". + * Message appended to "Last set from " */ char_u * get_scriptname(scid_T id) @@ -1567,6 +1568,8 @@ get_scriptname(scid_T id) return (char_u *)_("environment variable"); if (id == SID_ERROR) return (char_u *)_("error handler"); + if (id == SID_WINLAYOUT) + return (char_u *)_("changed window size"); return SCRIPT_ITEM(id)->sn_name; } |