diff --git a/python3/vimspector/utils.py b/python3/vimspector/utils.py index 796aa21..9c56e8b 100644 --- a/python3/vimspector/utils.py +++ b/python3/vimspector/utils.py @@ -242,7 +242,7 @@ def InputSave(): vim.eval( 'inputsave()' ) try: yield - except Exception: + finally: vim.eval( 'inputrestore()' ) @@ -262,7 +262,6 @@ def SelectFromList( prompt, options ): def AskForInput( prompt ): - # TODO: Handle the ctrl-c and such responses returning empty or something with InputSave(): try: return vim.eval( "input( '{0}' )".format( Escape( prompt ) ) )