diff options
| author | Maxime Coste <mawww@kakoune.org> | 2022-06-08 19:43:03 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2022-07-05 08:43:40 +1000 |
| commit | df79d0c2453991c4762c6c6ffbccd714312c87f9 (patch) | |
| tree | 6b92b4789d05cd5a78d2b7d22adb72f3c4d26402 /src/selectors.cc | |
| parent | b5e565bd6a957373096ad7fd636d4e931940cf9b (diff) | |
Distinguish between non-eol max column target and plain max column
Diffstat (limited to 'src/selectors.cc')
| -rw-r--r-- | src/selectors.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/selectors.cc b/src/selectors.cc index 43819034..b4e57e36 100644 --- a/src/selectors.cc +++ b/src/selectors.cc @@ -184,7 +184,7 @@ select_to_line_end(const Context& context, const Selection& selection) buffer.iterator_at(line)).coord(); if (end < begin) // Do not go backward when cursor is on eol end = begin; - return Selection{only_move ? end : begin, {end, max_column}}; + return Selection{only_move ? end : begin, {end, max_non_eol_column}}; } template Optional<Selection> select_to_line_end<false>(const Context&, const Selection&); template Optional<Selection> select_to_line_end<true>(const Context&, const Selection&); |
