[gnome-builder] vim: Use autocompletion for :open not just :edit



commit c4a2980ee1fedc2bdb4e0f1ea99af2e34e73932d
Author: Matthew Leeds <mleeds redhat com>
Date:   Tue Jun 7 14:04:32 2016 -0400

    vim: Use autocompletion for :open not just :edit
    
    https://bugzilla.gnome.org/show_bug.cgi?id=767371

 plugins/command-bar/gb-vim.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/command-bar/gb-vim.c b/plugins/command-bar/gb-vim.c
index f5c7696..66f6cb0 100644
--- a/plugins/command-bar/gb-vim.c
+++ b/plugins/command-bar/gb-vim.c
@@ -1427,6 +1427,8 @@ gb_vim_complete (GtkWidget   *active_widget,
 
       if (g_str_has_prefix (line, "e ") ||
           g_str_has_prefix (line, "edit ") ||
+          g_str_has_prefix (line, "o ") ||
+          g_str_has_prefix (line, "open ") ||
           g_str_has_prefix (line, "tabe "))
           gb_vim_complete_edit (active_widget, line, ar);
       else


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]