diff options
| author | Maxime Coste <mawww@kakoune.org> | 2018-04-29 22:27:28 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2018-04-29 22:31:57 +1000 |
| commit | 178d2d3cd354bc93d82e5cd6269976b2077a66c3 (patch) | |
| tree | a5e7095f74b6d09c6cd32f5d780d3928acce899e /src/normal.cc | |
| parent | 57112b0845a0ee9957d156fd3812a716c4d97a2c (diff) | |
Rework the way UI can trigger a client quitting
Add a UserInterface::is_ok method and return false on
SIGHUP/stdin closing/socket dropping
This should be cleaner and more robust than the previous SIGHUP
handling code.
Fixes #1594
Diffstat (limited to 'src/normal.cc')
| -rw-r--r-- | src/normal.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/normal.cc b/src/normal.cc index e7449b4e..92c9d863 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -1982,7 +1982,7 @@ template<typename Type, Direction direction, SelectMode mode = SelectMode::Repla void move_cursor(Context& context, NormalParams params) { kak_assert(mode == SelectMode::Replace or mode == SelectMode::Extend); - const Type offset(direction * std::max(params.count,1)); + const Type offset{direction * std::max(params.count,1)}; const ColumnCount tabstop = context.options()["tabstop"].get<int>(); auto& selections = context.selections(); for (auto& sel : selections) |
