mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-24 07:19:37 +03:00
Stop Esc/Ctrl-[ crashing when browser_window selection is NULL
svn path=/trunk/netsurf/; revision=12786
This commit is contained in:
parent
9d952f2ae2
commit
b3bf57ed79
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user