summaryrefslogtreecommitdiff
path: root/src/keys.cc
diff options
context:
space:
mode:
authorEnrico Borba <enricozb@users.noreply.github.com>2024-12-23 09:23:58 +0100
committerGitHub <noreply@github.com>2024-12-23 09:23:58 +0100
commit52125e6336d596aebdd4da91080b3178ddca7449 (patch)
tree27d3e5c01660d567f22fee621c97753f294256b0 /src/keys.cc
parent14cb35f62b36b2f1aa530adb5e31c05ff1347bfc (diff)
parent9c458c50661446fc6e7295787b06422137af099d (diff)
Merge branch 'master' into enricozb/daemon-stdin
Diffstat (limited to 'src/keys.cc')
-rw-r--r--src/keys.cc4
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