[gnome-builder] vim: fix empty :edit and :tabe



commit 72b385370fa11b0a7d860fa323739cff825fa9b5
Author: heroin <misko herko gmail com>
Date:   Tue Jan 5 09:47:27 2016 +0100

    vim: fix empty :edit and :tabe
    
    without options:
    
    :edit open the file dialog
    :tabe create a new empty file
    
    https://bugzilla.gnome.org/show_bug.cgi?id=760950

 plugins/command-bar/gb-vim.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/command-bar/gb-vim.c b/plugins/command-bar/gb-vim.c
index 5b88872..c9dfd26 100644
--- a/plugins/command-bar/gb-vim.c
+++ b/plugins/command-bar/gb-vim.c
@@ -407,7 +407,7 @@ gb_vim_command_edit (GtkSourceView  *source_view,
 
   if (ide_str_empty0 (options))
     {
-      ide_widget_action (GTK_WIDGET (source_view), "workbench", "open", NULL);
+      ide_widget_action (GTK_WIDGET (source_view), "win", "open-with-dialog", NULL);
       return TRUE;
     }
 
@@ -444,7 +444,7 @@ gb_vim_command_tabe (GtkSourceView  *source_view,
   if (!ide_str_empty0 (options))
     return gb_vim_command_edit (source_view, command, options, error);
 
-  ide_widget_action (GTK_WIDGET (source_view), "workbench", "new-document", NULL);
+  ide_widget_action (GTK_WIDGET (source_view), "perspective", "new-file", NULL);
 
   return TRUE;
 }


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