fetch the whole buffer for completion

This commit is contained in:
Daniel Micay 2012-06-06 21:22:26 -04:00
parent 220f98fb28
commit 89a3ddd864
1 changed files with 6 additions and 3 deletions

View File

@ -43,8 +43,11 @@ static gboolean add_to_list_store(char *key,
static GtkTreeModel *create_completion_model(VteTerminal *vte) { static GtkTreeModel *create_completion_model(VteTerminal *vte) {
GtkListStore *store = gtk_list_store_new(1, G_TYPE_STRING); GtkListStore *store = gtk_list_store_new(1, G_TYPE_STRING);
// TODO: get the full buffer glong end_row, end_col;
gchar *content = vte_terminal_get_text(vte, vte_terminal_get_cursor_position(vte, &end_col, &end_row);
gchar *content = vte_terminal_get_text_range(vte, 0, 0,
end_row,
end_col,
NULL, NULL, NULL); NULL, NULL, NULL);
if (!content) { if (!content) {