Mercurial > vim
comparison src/option.h @ 34369:92452a65138e v9.1.0114
patch 9.1.0114: Setting some options may change curswant
Commit: https://github.com/vim/vim/commit/fcaed6a70faf73bff3e5405ada556d726024f866
Author: zeertzjq <zeertzjq@outlook.com>
Date: Sun Feb 18 09:33:54 2024 +0100
patch 9.1.0114: Setting some options may change curswant
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>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 18 Feb 2024 09:45:06 +0100 |
parents | 7d9358937eb9 |
children | c5a945f7f3da |
comparison
equal
deleted
inserted
replaced
34368:a3236a7ac392 | 34369:92452a65138e |
---|---|
36 | 36 |
37 // when option changed, what to display: | 37 // when option changed, what to display: |
38 #define P_RSTAT 0x1000 // redraw status lines | 38 #define P_RSTAT 0x1000 // redraw status lines |
39 #define P_RWIN 0x2000 // redraw current window and recompute text | 39 #define P_RWIN 0x2000 // redraw current window and recompute text |
40 #define P_RBUF 0x4000 // redraw current buffer and recompute text | 40 #define P_RBUF 0x4000 // redraw current buffer and recompute text |
41 #define P_RALL 0x6000 // redraw all windows | 41 #define P_RALL 0x6000 // redraw all windows and recompute text |
42 #define P_RCLR 0x7000 // clear and redraw all | 42 #define P_RCLR 0x7000 // clear and redraw all and recompute text |
43 | 43 |
44 #define P_COMMA 0x8000 // comma separated list | 44 #define P_COMMA 0x8000 // comma separated list |
45 #define P_ONECOMMA 0x18000L // P_COMMA and cannot have two consecutive | 45 #define P_ONECOMMA 0x18000L // P_COMMA and cannot have two consecutive |
46 // commas | 46 // commas |
47 #define P_NODUP 0x20000L // don't allow duplicate strings | 47 #define P_NODUP 0x20000L // don't allow duplicate strings |
56 // side effects) | 56 // side effects) |
57 #define P_NO_ML 0x2000000L // not allowed in modeline | 57 #define P_NO_ML 0x2000000L // not allowed in modeline |
58 #define P_CURSWANT 0x4000000L // update curswant required; not needed when | 58 #define P_CURSWANT 0x4000000L // update curswant required; not needed when |
59 // there is a redraw flag | 59 // there is a redraw flag |
60 #define P_NDNAME 0x8000000L // only normal dir name chars allowed | 60 #define P_NDNAME 0x8000000L // only normal dir name chars allowed |
61 #define P_RWINONLY 0x10000000L // only redraw current window | 61 #define P_HLONLY 0x10000000L // option only changes highlight, not text |
62 #define P_MLE 0x20000000L // under control of 'modelineexpr' | 62 #define P_MLE 0x20000000L // under control of 'modelineexpr' |
63 #define P_FUNC 0x40000000L // accept a function reference or a lambda | 63 #define P_FUNC 0x40000000L // accept a function reference or a lambda |
64 #define P_COLON 0x80000000L // values use colons to create sublists | 64 #define P_COLON 0x80000000L // values use colons to create sublists |
65 // Warning: Currently we have used all 32 bits for option flags. On some 32-bit | 65 // Warning: Currently we have used all 32 bits for option flags. On some 32-bit |
66 // systems, the flags are stored as a 32-bit integer, and adding more | 66 // systems, the flags are stored as a 32-bit integer, and adding more |