Skip to content

Commit 3acd4e5

Browse files
committed
Merge pull request #133 from blueyed/inputstream-probe-sleep
InputStream.probe: sleep for 100ms after getchar()
2 parents 74ef5a3 + e1e6f50 commit 3acd4e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugin/python/vdebug/util.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import re
55
import os
66
import urllib
7+
import time
78

89
class Keymapper:
910
"""Map and unmap key commands for the Vim user interface.
@@ -198,6 +199,7 @@ class InputStream:
198199
def probe(self):
199200
try:
200201
vim.eval("getchar(0)")
202+
time.sleep(0.1)
201203
except: # vim.error
202204
raise UserInterrupt()
203205

0 commit comments

Comments
 (0)