mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 21:16:50 +03:00
[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:
parent
9acf6d31cf
commit
36b513ccce
@ -117,7 +117,7 @@ bool ro_gui_url_complete_keypress(struct gui_window *g, int key) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* check if we should ignore text changes */
|
/* 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,
|
ignore_changes = !strcmp(url,
|
||||||
url_complete_matches[url_complete_keypress_selection]);
|
url_complete_matches[url_complete_keypress_selection]);
|
||||||
|
|
||||||
@ -129,8 +129,9 @@ bool ro_gui_url_complete_keypress(struct gui_window *g, int key) {
|
|||||||
lines = MAXIMUM_VISIBLE_LINES;
|
lines = MAXIMUM_VISIBLE_LINES;
|
||||||
if (lines > url_complete_matches_available)
|
if (lines > url_complete_matches_available)
|
||||||
lines = url_complete_matches_available;
|
lines = url_complete_matches_available;
|
||||||
for (i = 0; i < MAXIMUM_VISIBLE_LINES; i++)
|
if (url_complete_matches)
|
||||||
url_complete_redraw[i] = url_complete_matches[i];
|
for (i = 0; i < MAXIMUM_VISIBLE_LINES; i++)
|
||||||
|
url_complete_redraw[i] = url_complete_matches[i];
|
||||||
|
|
||||||
/* our selection gets wiped */
|
/* our selection gets wiped */
|
||||||
error = xwimp_force_redraw(dialog_url_complete,
|
error = xwimp_force_redraw(dialog_url_complete,
|
||||||
|
Loading…
Reference in New Issue
Block a user