1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

script: fix cursor position after /script list -i or /script list -il

This commit is contained in:
Sébastien Helleu
2023-06-17 20:39:34 +02:00
parent 59cdade5f0
commit 6c8d6eef58
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -28,6 +28,7 @@ Bug fixes::
* core: keep keys ctrl-H and ctrl-? (in lower case) if they were manually bound to custom commands in a previous version
* core: fix cursor position after `/plugin list -i` or `/plugin list -il`
* irc: fix display of country code in message 344 received as whois geo info (issue #1736)
* script: fix cursor position after `/script list -i` or `/script list -il`
Tests::
+1 -1
View File
@@ -163,7 +163,7 @@ script_action_run_list_input (int send_to_buffer, int translated)
else
{
weechat_buffer_set (weechat_current_buffer (), "input", *buf);
length = strlen (*buf);
length = weechat_utf8_strlen (*buf);
snprintf (str_pos, sizeof (str_pos), "%d", length);
weechat_buffer_set (weechat_current_buffer (), "input_pos", str_pos);
}