mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
updated for version 7.4.473
Problem: Cursor movement is incorrect when there is a number column/sign/fold column and 'sbr' is displayed. Solution: Adjust the column for 'sbr'. (Christian Brabandt)
This commit is contained in:
@@ -1184,6 +1184,8 @@ win_lbr_chartabsize(wp, line, s, col, headp)
|
||||
{
|
||||
col -= W_WIDTH(wp);
|
||||
numberextra = W_WIDTH(wp) - (numberextra - win_col_off2(wp));
|
||||
if (*p_sbr != NUL && col >= (colnr_T)STRLEN(p_sbr))
|
||||
col -= (colnr_T)STRLEN(p_sbr);
|
||||
if (numberextra > 0)
|
||||
col = col % numberextra;
|
||||
}
|
||||
|
Reference in New Issue
Block a user