mirror of
https://github.com/neovim/neovim.git
synced 2025-10-16 23:06:14 +00:00
vim-patch:8.2.4911: the mode #defines are not clearly named (#18499)
Problem: The mode #defines are not clearly named.
Solution: Prepend MODE_. Renumber them to put the mapped modes first.
249591057b
A hunk from the patch depends on patch 8.2.4861, which hasn't been
ported yet, but that should be easy to notice.
This commit is contained in:
@@ -320,15 +320,15 @@ bool cursor_mode_uses_syn_id(int syn_id)
|
||||
int cursor_get_mode_idx(void)
|
||||
FUNC_ATTR_PURE
|
||||
{
|
||||
if (State == SHOWMATCH) {
|
||||
if (State == MODE_SHOWMATCH) {
|
||||
return SHAPE_IDX_SM;
|
||||
} else if (State & VREPLACE_FLAG) {
|
||||
return SHAPE_IDX_R;
|
||||
} else if (State & REPLACE_FLAG) {
|
||||
return SHAPE_IDX_R;
|
||||
} else if (State & INSERT) {
|
||||
} else if (State & MODE_INSERT) {
|
||||
return SHAPE_IDX_I;
|
||||
} else if (State & CMDLINE) {
|
||||
} else if (State & MODE_CMDLINE) {
|
||||
if (cmdline_at_end()) {
|
||||
return SHAPE_IDX_C;
|
||||
} else if (cmdline_overstrike()) {
|
||||
|
Reference in New Issue
Block a user