Skip to content

Commit

Permalink
Fix inputrestore
Browse files Browse the repository at this point in the history
  • Loading branch information
puremourning committed Aug 4, 2019
1 parent dcc2c6c commit 53d3f8f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python3/vimspector/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def InputSave():
vim.eval( 'inputsave()' )
try:
yield
except Exception:
finally:
vim.eval( 'inputrestore()' )


Expand All @@ -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 ) ) )
Expand Down

0 comments on commit 53d3f8f

Please sign in to comment.