diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-02-18 09:33:54 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-02-18 09:33:54 +0100 |
commit | fcaed6a70faf73bff3e5405ada556d726024f866 (patch) | |
tree | 5dae7674b1115ae5298940a54e54d9f97975b1d9 /src/optionstr.c | |
parent | 79230f027a25ff12eb7c7b64e1c063297876aae2 (diff) |
patch 9.1.0114: Setting some options may change curswantv9.1.0114
Problem: Setting some options changes curswant unnecessarily.
Solution: Add a P_HLONLY flag that prevents changing curswant.
(zeertzjq)
closes: #14044
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/optionstr.c')
-rw-r--r-- | src/optionstr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/optionstr.c b/src/optionstr.c index c049b3b6fc..8b000abbb4 100644 --- a/src/optionstr.c +++ b/src/optionstr.c @@ -4510,7 +4510,8 @@ did_set_string_option( #endif if (curwin->w_curswant != MAXCOL - && (get_option_flags(opt_idx) & (P_CURSWANT | P_RALL)) != 0) + && (get_option_flags(opt_idx) & (P_CURSWANT | P_RALL)) != 0 + && (get_option_flags(opt_idx) & P_HLONLY) == 0) curwin->w_set_curswant = TRUE; if ((opt_flags & OPT_NO_REDRAW) == 0) |