diff --git a/src/normal.cc b/src/normal.cc index 5a631e76..85597432 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -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(buffer, pos, context.selections()); break; } diff --git a/test/normal/goto-extending/last-change/selections b/test/normal/goto-extending/last-change/selections index c4ff167b..333dc6b4 100644 --- a/test/normal/goto-extending/last-change/selections +++ b/test/normal/goto-extending/last-change/selections @@ -1,3 +1,3 @@ foo -b + diff --git a/test/normal/goto/last-change/selections b/test/normal/goto/last-change/selections index 61780798..139597f9 100644 --- a/test/normal/goto/last-change/selections +++ b/test/normal/goto/last-change/selections @@ -1 +1,2 @@ -b + +