1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 06:46:38 +02:00

fset: fix error when clicking on a line after the last option displayed

This commit is contained in:
Sébastien Helleu
2017-06-02 21:42:10 +02:00
parent 0e53103b6e
commit 93fd6b96ce
+5 -4
View File
@@ -170,10 +170,11 @@ fset_command_fset (const void *pointer, void *data,
line = weechat_arraylist_size (fset_options) - 1;
else
line = fset_command_get_int_arg (argc, argv, 2, -1);
if (line < 0)
WEECHAT_COMMAND_ERROR;
fset_buffer_set_current_line (line);
fset_buffer_check_line_outside_window ();
if (line >= 0)
{
fset_buffer_set_current_line (line);
fset_buffer_check_line_outside_window ();
}
}
return WEECHAT_RC_OK;
}