summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/input_handler.cc')
-rw-r--r--src/input_handler.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/input_handler.cc b/src/input_handler.cc
index b7f424aa..07175af9 100644
--- a/src/input_handler.cc
+++ b/src/input_handler.cc
@@ -1240,9 +1240,10 @@ private:
void move(Type offset)
{
auto& selections = context().selections();
+ const ColumnCount tabstop = context().options()["tabstop"].get<int>();
for (auto& sel : selections)
{
- auto cursor = context().buffer().offset_coord(sel.cursor(), offset);
+ auto cursor = context().buffer().offset_coord(sel.cursor(), offset, tabstop);
sel.anchor() = sel.cursor() = cursor;
}
selections.sort_and_merge_overlapping();