1
1

Ticket #407: C-w does not delete whole command line

Fix set mark on delete_region

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Этот коммит содержится в:
Stan. S. Krupoderov 2009-11-25 17:03:13 +02:00 коммит произвёл Slava Zanko
родитель c68dd0e7bd
Коммит c1426b90ff

Просмотреть файл

@ -1580,7 +1580,8 @@ delete_region (WInput *in, int x_first, int x_last)
size_t len;
in->point = first;
in->mark = first;
if (in->mark > first)
in->mark = first;
last = str_offset_to_pos (in->buffer, last);
first = str_offset_to_pos (in->buffer, first);
len = strlen (&in->buffer[last]) + 1;