mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
Never insert NUL characters to entry line (Ctrl-Space)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1723 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
59a1a4d649
commit
a8193b168a
@ -141,6 +141,8 @@ void gui_entry_insert_text(const char *str)
|
||||
|
||||
void gui_entry_insert_char(char chr)
|
||||
{
|
||||
if (chr == 0) return; /* never insert NUL characters */
|
||||
|
||||
g_string_insert_c(entry, pos, chr);
|
||||
pos++;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user