diff options
author | Luuk van Baal <luukvbaal@gmail.com> | 2022-10-03 15:28:08 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-10-03 15:28:08 +0100 |
commit | 13ece2ae1d09009d3fb8acf858c288e7848ecdac (patch) | |
tree | 8c157431840de281782b06d8572adf41085f617e /src/optiondefs.h | |
parent | 6b2d4ff7148e0b416ba745d20d061e6f7bb53ee7 (diff) | |
download | vim-git-13ece2ae1d09009d3fb8acf858c288e7848ecdac.tar.gz |
patch 9.0.0647: the 'splitscroll' option is not a good namev9.0.0647
Problem: The 'splitscroll' option is not a good name.
Solution: Rename 'splitscroll' to 'splitkeep' and make it a string option,
also supporting "topline". (Luuk van Baal, closes #11258)
Diffstat (limited to 'src/optiondefs.h')
-rw-r--r-- | src/optiondefs.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/optiondefs.h b/src/optiondefs.h index de04abed6..2ce3ec37d 100644 --- a/src/optiondefs.h +++ b/src/optiondefs.h @@ -2350,12 +2350,12 @@ static struct vimoption options[] = {"splitbelow", "sb", P_BOOL|P_VI_DEF, (char_u *)&p_sb, PV_NONE, {(char_u *)FALSE, (char_u *)0L} SCTX_INIT}, + {"splitkeep", "spk", P_STRING, + (char_u *)&p_spk, PV_NONE, + {(char_u *)"cursor", (char_u *)"cursor"} SCTX_INIT}, {"splitright", "spr", P_BOOL|P_VI_DEF, (char_u *)&p_spr, PV_NONE, {(char_u *)FALSE, (char_u *)0L} SCTX_INIT}, - {"splitscroll", "spsc", P_BOOL, - (char_u *)&p_spsc, PV_NONE, - {(char_u *)TRUE, (char_u *)TRUE} SCTX_INIT}, {"startofline", "sol", P_BOOL|P_VI_DEF|P_VIM, (char_u *)&p_sol, PV_NONE, {(char_u *)TRUE, (char_u *)0L} SCTX_INIT}, |