[project @ 2005-04-05 18:52:00 by rjw]

Fix reading from zero-page.

svn path=/import/netsurf/; revision=1601
This commit is contained in:
Richard Wilson 2005-04-05 18:52:00 +00:00
parent 9acf6d31cf
commit 36b513ccce

View File

@ -117,7 +117,7 @@ bool ro_gui_url_complete_keypress(struct gui_window *g, int key) {
}
/* check if we should ignore text changes */
if (url_complete_keypress_selection >= 0)
if ((url_complete_keypress_selection >= 0) && (url_complete_matches))
ignore_changes = !strcmp(url,
url_complete_matches[url_complete_keypress_selection]);
@ -129,6 +129,7 @@ bool ro_gui_url_complete_keypress(struct gui_window *g, int key) {
lines = MAXIMUM_VISIBLE_LINES;
if (lines > url_complete_matches_available)
lines = url_complete_matches_available;
if (url_complete_matches)
for (i = 0; i < MAXIMUM_VISIBLE_LINES; i++)
url_complete_redraw[i] = url_complete_matches[i];