mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 01:16:31 +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:
@@ -155,11 +155,11 @@ int plines_win_col(win_T *wp, linenr_T lnum, long column)
|
||||
}
|
||||
|
||||
// If *s is a TAB, and the TAB is not displayed as ^I, and we're not in
|
||||
// INSERT mode, then col must be adjusted so that it represents the last
|
||||
// screen position of the TAB. This only fixes an error when the TAB wraps
|
||||
// from one screen line to the next (when 'columns' is not a multiple of
|
||||
// 'ts') -- webb.
|
||||
if (*s == TAB && (State & NORMAL)
|
||||
// MODE_INSERT state, then col must be adjusted so that it represents the
|
||||
// last screen position of the TAB. This only fixes an error when the TAB
|
||||
// wraps from one screen line to the next (when 'columns' is not a multiple
|
||||
// of 'ts') -- webb.
|
||||
if (*s == TAB && (State & MODE_NORMAL)
|
||||
&& (!wp->w_p_list || wp->w_p_lcs_chars.tab1)) {
|
||||
col += win_lbr_chartabsize(wp, line, s, col, NULL) - 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user