mirror of
https://github.com/weechat/weechat.git
synced 2026-07-03 16:23:14 +02:00
core: fix command /cursor stop (do not toggle cursor mode) (closes #964)
This commit is contained in:
@@ -1674,7 +1674,7 @@ COMMAND_CALLBACK(cursor)
|
||||
|
||||
if (string_strcasecmp (argv[1], "stop") == 0)
|
||||
{
|
||||
gui_cursor_mode_toggle ();
|
||||
gui_cursor_mode_stop ();
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -74,6 +74,17 @@ gui_cursor_mode_toggle ()
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Stops cursor mode.
|
||||
*/
|
||||
|
||||
void
|
||||
gui_cursor_mode_stop ()
|
||||
{
|
||||
if (gui_cursor_mode)
|
||||
gui_cursor_mode_toggle ();
|
||||
}
|
||||
|
||||
/*
|
||||
* Sets debug for cursor mode.
|
||||
*/
|
||||
|
||||
@@ -30,6 +30,7 @@ extern int gui_cursor_y;
|
||||
/* cursor functions */
|
||||
|
||||
extern void gui_cursor_mode_toggle ();
|
||||
extern void gui_cursor_mode_stop ();
|
||||
extern void gui_cursor_debug_set (int debug);
|
||||
extern void gui_cursor_move_xy (int x, int y);
|
||||
extern void gui_cursor_move_add_xy (int add_x, int add_y);
|
||||
|
||||
Reference in New Issue
Block a user