mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +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:
@@ -1868,10 +1868,11 @@ int get_c_indent(void)
|
||||
* For unknown reasons the cursor might be past the end of the line, thus
|
||||
* check for that.
|
||||
*/
|
||||
if ((State & INSERT)
|
||||
if ((State & MODE_INSERT)
|
||||
&& curwin->w_cursor.col < (colnr_T)STRLEN(linecopy)
|
||||
&& linecopy[curwin->w_cursor.col] == ')')
|
||||
&& linecopy[curwin->w_cursor.col] == ')') {
|
||||
linecopy[curwin->w_cursor.col] = NUL;
|
||||
}
|
||||
|
||||
theline = (char_u *)skipwhite((char *)linecopy);
|
||||
|
||||
|
Reference in New Issue
Block a user