diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-04-27 20:23:23 +0100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-05-07 16:26:14 +0100 |
| commit | 5ee21ec932d1da0f1fbae8ee1f13b967b8014307 (patch) | |
| tree | 85caa9c6bcec24a1cec917910fe72a36a560d349 /src/input_handler.cc | |
| parent | 57c2b32d2082d67f1d2c1a168cf88a0677c73e18 (diff) | |
Respect tabstop in Buffer::offset_coord
Diffstat (limited to 'src/input_handler.cc')
| -rw-r--r-- | src/input_handler.cc | 3 |
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(); |
