mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-17 01:33:16 +03:00
Scope reduce a variable.
This commit is contained in:
parent
c7ba173a64
commit
91f3eb5c2f
@ -96,7 +96,6 @@ bool ro_gui_url_complete_keypress(struct toolbar *toolbar, uint32_t key)
|
||||
wimp_window_state state;
|
||||
char *match_url;
|
||||
const char *url;
|
||||
int i;
|
||||
int old_selection;
|
||||
int height;
|
||||
os_error *error;
|
||||
@ -144,6 +143,7 @@ bool ro_gui_url_complete_keypress(struct toolbar *toolbar, uint32_t key)
|
||||
(strcmp(match_url, url_complete_matched_string))) {
|
||||
|
||||
/* memorize the current matches */
|
||||
int i;
|
||||
int lines = MAXIMUM_VISIBLE_LINES;
|
||||
if (lines > url_complete_matches_available)
|
||||
lines = url_complete_matches_available;
|
||||
|
Loading…
Reference in New Issue
Block a user