#64 Point jumps to end of line if line is almost as long as there are cols and there is a tab char

Затворени
отворен преди 1 година от nuclearkev · 0 коментара

If a line contains a tab character and roughly has the same number of characters (whether combined UTF-8 or not) as there are window columns (curwp->w_cols) then the point will jump to the column of curwp->w_cols - 3, where 3 is the extra length added by the tab character.

One jumped to that new position, you can't use move up until you jump to the beginning of the line or move down a line.

My guess is that it has something to do with the display function in display.c

If a line contains a tab character and roughly has the same number of characters (whether combined UTF-8 or not) as there are window columns (curwp->w_cols) then the point will jump to the column of `curwp->w_cols - 3`, where _3_ is the extra length added by the tab character. One jumped to that new position, you can't use move up until you jump to the beginning of the line or move down a line. My guess is that it has something to do with the `display` function in `display.c`
Kevin "The Nuclear" Bloom посочи тази задача от ревизия преди 1 година
Впишете се за да се присъедините към разговора.
Зареждане...
Отказ
Запис
Все още няма съдържание.