mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 15:38:33 +00:00
vim-patch:7.4.489
Problem: Cursor movement still wrong when 'lbr' is set and there is a number column. (Hirohito Higashi) Solution: Add correction for number column. (Hiroyuki Takagi) https://code.google.com/p/vim/source/detail?r=v7-4-489
This commit is contained in:
@@ -1058,6 +1058,9 @@ int win_lbr_chartabsize(win_T *wp, char_u *line, char_u *s, colnr_T col, int *he
|
|||||||
if (col >= (colnr_T)wp->w_width) {
|
if (col >= (colnr_T)wp->w_width) {
|
||||||
col -= wp->w_width;
|
col -= wp->w_width;
|
||||||
numberextra = wp->w_width - (numberextra - win_col_off2(wp));
|
numberextra = wp->w_width - (numberextra - win_col_off2(wp));
|
||||||
|
if (numberextra > 0) {
|
||||||
|
col %= numberextra;
|
||||||
|
}
|
||||||
if (*p_sbr != NUL) {
|
if (*p_sbr != NUL) {
|
||||||
colnr_T sbrlen = (colnr_T)MB_CHARLEN(p_sbr);
|
colnr_T sbrlen = (colnr_T)MB_CHARLEN(p_sbr);
|
||||||
if (col >= sbrlen)
|
if (col >= sbrlen)
|
||||||
|
@@ -249,7 +249,7 @@ static int included_patches[] = {
|
|||||||
//492,
|
//492,
|
||||||
491,
|
491,
|
||||||
//490,
|
//490,
|
||||||
//489,
|
489,
|
||||||
//488,
|
//488,
|
||||||
//487,
|
//487,
|
||||||
//486,
|
//486,
|
||||||
|
Reference in New Issue
Block a user