diff options
-rw-r--r-- | desktop/textinput.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/textinput.c b/desktop/textinput.c index 1879f414c..ba89f72a3 100644 --- a/desktop/textinput.c +++ b/desktop/textinput.c @@ -140,7 +140,7 @@ bool browser_window_key_press(struct browser_window *bw, uint32_t key) return true; case KEY_ESCAPE: - if (selection_defined(bw->cur_sel)) { + if (bw->cur_sel && selection_defined(bw->cur_sel)) { selection_clear(bw->cur_sel, true); return true; } |