core: fix command /cursor stop (do not toggle cursor mode) (closes #964)
This commit is contained in:
parent
a96d27f236
commit
2a43f45947
@ -42,6 +42,7 @@ Improvements::
|
||||
|
||||
Bug fixes::
|
||||
|
||||
* core: fix command /cursor stop (do not toggle cursor mode) (issue #964)
|
||||
* core: fix delayed refresh when the signal SIGWINCH is received (terminal resized), send signal "signal_sigwinch" after refreshes (issue #902)
|
||||
* irc: fix parsing of DCC filename
|
||||
* irc: fix double decoding of IRC colors in messages sent/displayed by commands /msg and /query (issue #943)
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user