comparison mcabber/mcabber/screen.c @ 2306:7afb9a0c6409

[PATCH 3/3] Clear input line when switching to vi mode If vi_mode is set to 1 and the user leaves chat mode, clear the input line. Existing text on the input line cannot be sent as a message and will also not be evaluated as a vi command in this situation, so leaving the text on the input line would be confusing.
author Holger Weiß <holger@zedat.fu-berlin.de>
date Fri, 24 Jul 2015 02:52:23 +0200
parents 5b1a63dc2b1a
children 94d34e5c49f6
comparison
equal deleted inserted replaced
2305:5b1a63dc2b1a 2306:7afb9a0c6409
3805 } 3805 }
3806 3806
3807 void readline_disable_chat_mode(guint show_roster) 3807 void readline_disable_chat_mode(guint show_roster)
3808 { 3808 {
3809 scr_check_auto_away(TRUE); 3809 scr_check_auto_away(TRUE);
3810 if (chatmode) 3810 if (chatmode) {
3811 scr_buffer_readmark(TRUE); 3811 scr_buffer_readmark(TRUE);
3812 if (settings_opt_get_int("vi_mode"))
3813 clear_inputline();
3814 }
3812 currentWindow = NULL; 3815 currentWindow = NULL;
3813 chatmode = FALSE; 3816 chatmode = FALSE;
3814 if (current_buddy) 3817 if (current_buddy)
3815 buddy_setflags(BUDDATA(current_buddy), ROSTER_FLAG_LOCK, FALSE); 3818 buddy_setflags(BUDDATA(current_buddy), ROSTER_FLAG_LOCK, FALSE);
3816 if (show_roster) 3819 if (show_roster)