goto last change: do not try to avoid end of lines

Avoiding end of line is a behaviour we avoid (pun intended) more and more
in Kakoune source code, now that end of lines are regularly selected, it
makes no sense to just to next line when last modification lies on an EOL
(and it probably did not make much sense back when that code was written).
This commit is contained in:
Maxime Coste 2018-02-24 21:09:09 +11:00
parent cda1fdafe2
commit a0de41d165
3 changed files with 3 additions and 4 deletions

View File

@ -280,8 +280,6 @@ void goto_commands(Context& context, NormalParams params)
auto pos = buffer.last_modification_coord();
if (pos >= buffer.back_coord())
pos = buffer.back_coord();
else if (buffer[pos.line].length() == pos.column + 1)
pos = BufferCoord{ pos.line+1, 0 };
select_coord<mode>(buffer, pos, context.selections());
break;
}

View File

@ -1,3 +1,3 @@
foo
b

View File

@ -1 +1,2 @@
b