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:
@@ -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::
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user