From edc53de8cca3657111347483a30a52b50435bcbb Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 21 May 2018 07:51:17 +1000 Subject: [PATCH] Small code cleanup --- src/normal.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/normal.cc b/src/normal.cc index 6db2b4bb..5ade6398 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -1396,8 +1396,8 @@ void copy_selections_on_next_lines(Context& context, NormalParams params) anchor_line >= buffer.line_count() or cursor_line >= buffer.line_count()) continue; - ByteCount anchor_byte = get_byte_to_column(buffer, tabstop, {anchor_line, anchor_col}); - ByteCount cursor_byte = get_byte_to_column(buffer, tabstop, {cursor_line, cursor_col}); + 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}); if (anchor_byte != buffer[anchor_line].length() and cursor_byte != buffer[cursor_line].length())