diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2005-02-07 14:28:43 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2005-02-07 14:28:43 +0000 |
commit | db41dc3dac1528afbc369de91a28d1ebd4cf028b (patch) | |
tree | f75e11a34984a2a5c5457c2bcf24147721dc0637 /riscos/url_complete.c | |
parent | 3bfe5701c3316ccc832e5268dd2db73fd600ded8 (diff) | |
download | netsurf-db41dc3dac1528afbc369de91a28d1ebd4cf028b.tar.gz netsurf-db41dc3dac1528afbc369de91a28d1ebd4cf028b.tar.bz2 |
[project @ 2005-02-07 14:28:43 by rjw]
Initial work for global history (currently incomplete)
svn path=/import/netsurf/; revision=1497
Diffstat (limited to 'riscos/url_complete.c')
-rw-r--r-- | riscos/url_complete.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/riscos/url_complete.c b/riscos/url_complete.c index 268f08597..6fc319527 100644 --- a/riscos/url_complete.c +++ b/riscos/url_complete.c @@ -17,7 +17,9 @@ #include "oslib/wimp.h" #include "netsurf/content/url_store.h" #include "netsurf/utils/log.h" +#include "netsurf/riscos/global_history.h" #include "netsurf/riscos/gui.h" +#include "netsurf/riscos/options.h" #include "netsurf/riscos/theme.h" #include "netsurf/riscos/url_complete.h" #include "netsurf/riscos/wimp.h" @@ -82,7 +84,7 @@ bool ro_gui_url_complete_keypress(struct gui_window *g, int key) { bool currently_open; /* we must have a toolbar/url bar */ - if ((!g->toolbar) || (!g->toolbar->display_url)) { + if ((!g->toolbar) || (!g->toolbar->display_url) || (!option_url_suggestion)) { ro_gui_url_complete_close(NULL, 0); return false; } @@ -563,6 +565,7 @@ void ro_gui_url_complete_mouse_at(wimp_pointer *pointer) { browser_window_go(g->bw, url_complete_matches[url_complete_matches_selection], 0); + global_history_add_recent(url_complete_matches[url_complete_matches_selection]); ro_gui_url_complete_close(NULL, 0); } |