Small formatting changes.
This commit is contained in:
parent
90bb50597a
commit
cc8bb5224d
12
termite.c
12
termite.c
|
@ -52,11 +52,10 @@ static GtkTreeModel *create_completion_model(VteTerminal *vte) {
|
||||||
// TODO: get the full buffer
|
// TODO: get the full buffer
|
||||||
gchar *content = vte_terminal_get_text(vte,
|
gchar *content = vte_terminal_get_text(vte,
|
||||||
(VteSelectionFunc)always_selected,
|
(VteSelectionFunc)always_selected,
|
||||||
NULL,
|
NULL, NULL);
|
||||||
NULL);
|
|
||||||
|
|
||||||
if (!content) {
|
if (!content) {
|
||||||
fputs("no content", stderr);
|
g_printerr("no content");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,20 +103,17 @@ static gboolean entry_key_press_cb(GtkEntry *entry, GdkEventKey *event, search_p
|
||||||
switch (info->mode) {
|
switch (info->mode) {
|
||||||
case OVERLAY_SEARCH:
|
case OVERLAY_SEARCH:
|
||||||
search(VTE_TERMINAL(info->vte), text, false);
|
search(VTE_TERMINAL(info->vte), text, false);
|
||||||
ret = TRUE;
|
|
||||||
break;
|
break;
|
||||||
case OVERLAY_RSEARCH:
|
case OVERLAY_RSEARCH:
|
||||||
search(VTE_TERMINAL(info->vte), text, true);
|
search(VTE_TERMINAL(info->vte), text, true);
|
||||||
ret = TRUE;
|
|
||||||
break;
|
break;
|
||||||
case OVERLAY_COMPLETION:
|
case OVERLAY_COMPLETION:
|
||||||
vte_terminal_feed(VTE_TERMINAL(info->vte), text, -1);
|
vte_terminal_feed(VTE_TERMINAL(info->vte), text, -1);
|
||||||
ret = TRUE;
|
|
||||||
break;
|
break;
|
||||||
default:
|
case OVERLAY_HIDDEN:
|
||||||
ret = TRUE;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
ret = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ret) {
|
if (ret) {
|
||||||
|
|
Loading…
Reference in New Issue