diff options
| author | Enrico Borba <enricozb@users.noreply.github.com> | 2024-12-23 09:23:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-23 09:23:58 +0100 |
| commit | 52125e6336d596aebdd4da91080b3178ddca7449 (patch) | |
| tree | 27d3e5c01660d567f22fee621c97753f294256b0 /src/keys.cc | |
| parent | 14cb35f62b36b2f1aa530adb5e31c05ff1347bfc (diff) | |
| parent | 9c458c50661446fc6e7295787b06422137af099d (diff) | |
Merge branch 'master' into enricozb/daemon-stdin
Diffstat (limited to 'src/keys.cc')
| -rw-r--r-- | src/keys.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/keys.cc b/src/keys.cc index 5ba44181..4170ce98 100644 --- a/src/keys.cc +++ b/src/keys.cc @@ -5,7 +5,7 @@ #include "string.hh" #include "unit_tests.hh" #include "utf8_iterator.hh" -#include "utils.hh" +#include "format.hh" #include "string_utils.hh" namespace Kakoune @@ -196,7 +196,7 @@ String to_string(Key key) else if (key.modifiers & Key::Modifiers::MouseRelease) res = format("mouse:release:{}:{}.{}", key.mouse_button(), coord.line, coord.column); else if (key.modifiers & Key::Modifiers::Scroll) - res = format("scroll:{}", static_cast<int>(key.key)); + res = format("scroll:{}:{}.{}", key.scroll_amount(), coord.line, coord.column); else if (key.modifiers & Key::Modifiers::Resize) res = format("resize:{}.{}", coord.line, coord.column); else |
