summaryrefslogtreecommitdiff
path: root/src/normal.cc
diff options
context:
space:
mode:
authorFrank LENORMAND <lenormf@gmail.com>2018-06-30 11:53:28 +0300
committerFrank LENORMAND <lenormf@gmail.com>2018-06-30 11:53:28 +0300
commit1cb51cacb796f0494ac4e2cfac2ac64cce263c64 (patch)
treefd76c2c4be998fc3d6fc507f1cbd2254a5ddcfbe /src/normal.cc
parent43b72770ec5ef15723b0ee5c1901a39e23039de8 (diff)
src: Fix cycle hogging when using `C` at EOF
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});