external: fix issues with coming back from vim

This commit is contained in:
dece 2021-05-16 01:27:28 +02:00
parent 8de79a6e5a
commit 1d92b52379
2 changed files with 3 additions and 1 deletions

View file

@ -27,7 +27,6 @@ BACKLOG
--------------------------------------------------------------------------------
bug: can't input unicode
click on links to open them
bug: exiting editor breaks curses
dumb rendering mode per site
well, preferences per site maybe?
download without memory buffer

View file

@ -12,6 +12,9 @@ def open_external_program(command):
"""
curses.nocbreak()
curses.echo()
curses.curs_set(1)
subprocess.run(command)
curses.mousemask(curses.ALL_MOUSE_EVENTS)
curses.curs_set(0)
curses.noecho()
curses.cbreak()