rearange some code so the menu doesnt change the window/cursor position

This commit is contained in:
marty 2009-08-20 03:05:21 +12:00
parent 711c8e3328
commit bd5e5d71b5

View File

@ -486,18 +486,15 @@ function! s:MenuController.showMenu()
let key = nr2char(getchar())
let done = self._handleKeypress(key)
endwhile
if self.selection != -1
let m = self._current()
call m.execute()
endif
finally
call self._restoreOptions()
endtry
if self.selection != -1
let m = self._current()
call m.execute()
endif
endfunction
"FUNCTION: MenuController._prompt() {{{3
function! s:MenuController._prompt()
let toReturn = ''