summaryrefslogtreecommitdiff
path: root/src/completion.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/completion.c')
-rw-r--r--src/completion.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/completion.c b/src/completion.c
index 41159758..7c0f2482 100644
--- a/src/completion.c
+++ b/src/completion.c
@@ -557,10 +557,18 @@ completion_complete_buffer()
format = g_list_length(dwb.state.views) > 10 ? "%02d : %s" : "%d : %s";
for (GList *l = dwb.state.views;l; l=l->next)
{
- wv = WEBVIEW(l);
- title = webkit_web_view_get_title(wv);
- uri = webkit_web_view_get_uri(wv);
- text = g_strdup_printf(format, i, title != NULL ? title : uri);
+ if (VIEW(l)->status->deferred)
+ {
+ text = g_strdup_printf(format, i, VIEW(l)->status->deferred_uri);
+ uri = "deferred";
+ }
+ else
+ {
+ wv = WEBVIEW(l);
+ title = webkit_web_view_get_title(wv);
+ uri = webkit_web_view_get_uri(wv);
+ text = g_strdup_printf(format, i, title != NULL ? title : uri);
+ }
c = completion_get_completion_item(text, uri, NULL, l);
gtk_box_pack_start(GTK_BOX(dwb.gui.compbox), c->event, false, false, 0);