summaryrefslogtreecommitdiff
path: root/src/normal.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-07-26 00:44:00 +0200
committerMaxime Coste <frrrwww@gmail.com>2013-07-26 01:50:09 +0200
commit3862b5cbb8faf1514ed8a8fc413669414e7c614d (patch)
treecc003c0e7af2e1362ac3f2a3bc1e267e8b51ce87 /src/normal.cc
parent5d681f9efe25e3841ba42a166a77830893c24b8e (diff)
LineAndColumns: always pass by value
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 f1e0cac2..50912251 100644
--- a/src/normal.cc
+++ b/src/normal.cc
@@ -723,7 +723,7 @@ void align(Context& context)
{
auto& selections = context.editor().selections();
auto& buffer = context.buffer();
- auto get_column = [&buffer](const BufferCoord& coord)
+ auto get_column = [&buffer](BufferCoord coord)
{ return buffer[coord.line].char_count_to(coord.column); };
CharCount max_col = 0;