Small formatting changes.

This commit is contained in:
Simon Gomizelj 2012-06-03 23:49:39 -04:00
parent 90bb50597a
commit cc8bb5224d
1 changed files with 4 additions and 8 deletions

View File

@ -52,11 +52,10 @@ static GtkTreeModel *create_completion_model(VteTerminal *vte) {
// TODO: get the full buffer
gchar *content = vte_terminal_get_text(vte,
(VteSelectionFunc)always_selected,
NULL,
NULL);
NULL, NULL);
if (!content) {
fputs("no content", stderr);
g_printerr("no content");
exit(EXIT_FAILURE);
}
@ -104,20 +103,17 @@ static gboolean entry_key_press_cb(GtkEntry *entry, GdkEventKey *event, search_p
switch (info->mode) {
case OVERLAY_SEARCH:
search(VTE_TERMINAL(info->vte), text, false);
ret = TRUE;
break;
case OVERLAY_RSEARCH:
search(VTE_TERMINAL(info->vte), text, true);
ret = TRUE;
break;
case OVERLAY_COMPLETION:
vte_terminal_feed(VTE_TERMINAL(info->vte), text, -1);
ret = TRUE;
break;
default:
ret = TRUE;
case OVERLAY_HIDDEN:
break;
}
ret = TRUE;
}
if (ret) {