diff options
-rw-r--r-- | ChangeLog.adoc | 1 | ||||
-rw-r--r-- | src/plugins/script/script-action.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/ChangeLog.adoc b/ChangeLog.adoc index decb9d14d..41c7f6ba3 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -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:: diff --git a/src/plugins/script/script-action.c b/src/plugins/script/script-action.c index 551733c2f..36220be91 100644 --- a/src/plugins/script/script-action.c +++ b/src/plugins/script/script-action.c @@ -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); } |