From 1cb51cacb796f0494ac4e2cfac2ac64cce263c64 Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Sat, 30 Jun 2018 11:53:28 +0300 Subject: [PATCH] src: Fix cycle hogging when using `C` at EOF --- src/normal.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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});