Ticket #2881: (edit_move_forward3): fix two-columns extra offset of cursor
...after tab character. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Этот коммит содержится в:
родитель
b4a10d82cc
Коммит
28cd54da5a
@ -3073,16 +3073,15 @@ edit_move_forward3 (WEdit * edit, off_t current, long cols, off_t upto)
|
||||
c = convert_to_display_c (c);
|
||||
#endif
|
||||
|
||||
if (c == '\n')
|
||||
return (upto != 0 ? (off_t) col : p);
|
||||
if (c == '\t')
|
||||
col += TAB_SIZE - col % TAB_SIZE;
|
||||
else if (c == '\n')
|
||||
return (upto != 0 ? (off_t) col : p);
|
||||
|
||||
if ((c < 32 || c == 127) && (orig_c == c
|
||||
else if ((c < 32 || c == 127) && (orig_c == c
|
||||
#ifdef HAVE_CHARSET
|
||||
|| (!mc_global.utf8_display && !edit->utf8)
|
||||
|| (!mc_global.utf8_display && !edit->utf8)
|
||||
#endif
|
||||
))
|
||||
))
|
||||
/* '\r' is shown as ^M, so we must advance 2 characters */
|
||||
/* Caret notation for control characters */
|
||||
col += 2;
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user