summaryrefslogtreecommitdiff
path: root/src/normal.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-05-17 12:13:49 +0100
committerMaxime Coste <frrrwww@gmail.com>2014-05-17 12:13:49 +0100
commit079d34b82a3690f28de3d33102eda4bb214ad13f (patch)
treeaf757529567b9d6b501a1bd05eaf9dcfd5921773 /src/normal.cc
parent211b78f5369a61bb3ae72e882373c6823c7c202a (diff)
Minor cleanup in SelectionList methods
Diffstat (limited to 'src/normal.cc')
-rw-r--r--src/normal.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/normal.cc b/src/normal.cc
index ff38c29d..0e2d3b38 100644
--- a/src/normal.cc
+++ b/src/normal.cc
@@ -79,7 +79,7 @@ void insert(Buffer& buffer, SelectionList& selections, const String& str)
}
}
if (mode == InsertMode::Replace)
- selections.set_timestamp(buffer.timestamp());
+ selections.update_timestamp();
else
selections.update();
selections.avoid_eol();
@@ -108,7 +108,7 @@ void insert(Buffer& buffer, SelectionList& selections, memoryview<String> string
}
}
if (mode == InsertMode::Replace)
- selections.set_timestamp(buffer.timestamp());
+ selections.update_timestamp();
else
selections.update();
selections.avoid_eol();