summaryrefslogtreecommitdiff
path: root/src/normal.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/normal.cc')
-rw-r--r--src/normal.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/normal.cc b/src/normal.cc
index 0fe60ef8..c35ee87f 100644
--- a/src/normal.cc
+++ b/src/normal.cc
@@ -1395,7 +1395,7 @@ void copy_selections_on_next_lines(Context& context, NormalParams params)
if (anchor_line < 0 or cursor_line < 0 or
anchor_line >= buffer.line_count() or cursor_line >= buffer.line_count())
- continue;
+ break;
const ByteCount anchor_byte = get_byte_to_column(buffer, tabstop, {anchor_line, anchor_col});
const ByteCount cursor_byte = get_byte_to_column(buffer, tabstop, {cursor_line, cursor_col});