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:
parent
cda1fdafe2
commit
a0de41d165
|
@ -280,8 +280,6 @@ void goto_commands(Context& context, NormalParams params)
|
||||||
auto pos = buffer.last_modification_coord();
|
auto pos = buffer.last_modification_coord();
|
||||||
if (pos >= buffer.back_coord())
|
if (pos >= buffer.back_coord())
|
||||||
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());
|
select_coord<mode>(buffer, pos, context.selections());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
foo
|
foo
|
||||||
|
|
||||||
b
|
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
b
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user