Fix inputrestore
This commit is contained in:
parent
dcc2c6c365
commit
53d3f8f64b
1 changed files with 1 additions and 2 deletions
|
|
@ -242,7 +242,7 @@ def InputSave():
|
||||||
vim.eval( 'inputsave()' )
|
vim.eval( 'inputsave()' )
|
||||||
try:
|
try:
|
||||||
yield
|
yield
|
||||||
except Exception:
|
finally:
|
||||||
vim.eval( 'inputrestore()' )
|
vim.eval( 'inputrestore()' )
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -262,7 +262,6 @@ def SelectFromList( prompt, options ):
|
||||||
|
|
||||||
|
|
||||||
def AskForInput( prompt ):
|
def AskForInput( prompt ):
|
||||||
# TODO: Handle the ctrl-c and such responses returning empty or something
|
|
||||||
with InputSave():
|
with InputSave():
|
||||||
try:
|
try:
|
||||||
return vim.eval( "input( '{0}' )".format( Escape( prompt ) ) )
|
return vim.eval( "input( '{0}' )".format( Escape( prompt ) ) )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue