diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/gui-input.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/gui-input.c b/src/gui/gui-input.c index 387aa72cb..1b54dbb6a 100644 --- a/src/gui/gui-input.c +++ b/src/gui/gui-input.c @@ -283,7 +283,7 @@ gui_input_insert_string (struct t_gui_buffer *buffer, const char *string) void gui_input_clipboard_copy (const char *buffer, int size) { - if (size <= 0) + if (!buffer || (size <= 0)) return; if (gui_input_clipboard != NULL) @@ -913,7 +913,6 @@ gui_input_delete_next_word (struct t_gui_buffer *buffer) 1); /* stop completion */ } - /* * Deletes all from cursor pos to beginning of line (default key: ctrl-U). */ |