[Lldb-commits] [lldb] r182484 - LLDB Vim plugin usability improvement: ":Lshow" now displays all panes

Daniel Malea daniel.malea at intel.com
Wed May 22 09:05:55 PDT 2013


Author: dmalea
Date: Wed May 22 11:05:55 2013
New Revision: 182484

URL: http://llvm.org/viewvc/llvm-project?rev=182484&view=rev
Log:
LLDB Vim plugin usability improvement: ":Lshow" now displays all panes
- no longer requires a pane name argument

Patch by Arthur Evstifeev


Modified:
    lldb/trunk/utils/vim-lldb/plugin/lldb.vim
    lldb/trunk/utils/vim-lldb/python-vim-lldb/lldb_controller.py

Modified: lldb/trunk/utils/vim-lldb/plugin/lldb.vim
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/utils/vim-lldb/plugin/lldb.vim?rev=182484&r1=182483&r2=182484&view=diff
==============================================================================
--- lldb/trunk/utils/vim-lldb/plugin/lldb.vim (original)
+++ lldb/trunk/utils/vim-lldb/plugin/lldb.vim Wed May 22 11:05:55 2013
@@ -42,7 +42,7 @@ function! s:InitLldbPlugin()
 
   " Window show/hide commands
   command -complete=custom,s:CompleteWindow -nargs=1 Lhide               python ctrl.doHide('<args>')
-  command -complete=custom,s:CompleteWindow -nargs=1 Lshow               python ctrl.doShow('<args>')
+  command -complete=custom,s:CompleteWindow -nargs=0 Lshow               python ctrl.doShow('<args>')
  
   " Launching convenience commands (no autocompletion)
   command -nargs=* Lstart                                                python ctrl.doLaunch(True,  '<args>')

Modified: lldb/trunk/utils/vim-lldb/python-vim-lldb/lldb_controller.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/utils/vim-lldb/python-vim-lldb/lldb_controller.py?rev=182484&r1=182483&r2=182484&view=diff
==============================================================================
--- lldb/trunk/utils/vim-lldb/python-vim-lldb/lldb_controller.py (original)
+++ lldb/trunk/utils/vim-lldb/python-vim-lldb/lldb_controller.py Wed May 22 11:05:55 2013
@@ -277,6 +277,10 @@ class LLDBController(object):
 
   def doShow(self, name):
     """ handle :Lshow <name> """
+    if not name:
+      self.ui.activate()
+      return
+
     if self.ui.showWindow(name):
       self.ui.update(self.target, "", self)
 





More information about the lldb-commits mailing list