diff options
| author | Frank LENORMAND <lenormf@gmail.com> | 2018-06-30 11:53:28 +0300 |
|---|---|---|
| committer | Frank LENORMAND <lenormf@gmail.com> | 2018-06-30 11:53:28 +0300 |
| commit | 1cb51cacb796f0494ac4e2cfac2ac64cce263c64 (patch) | |
| tree | fd76c2c4be998fc3d6fc507f1cbd2254a5ddcfbe /src/normal.cc | |
| parent | 43b72770ec5ef15723b0ee5c1901a39e23039de8 (diff) | |
src: Fix cycle hogging when using `C` at EOF
Diffstat (limited to 'src/normal.cc')
| -rw-r--r-- | src/normal.cc | 2 |
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}); |
