aboutsummaryrefslogtreecommitdiff
path: root/src/clint.py
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2017-10-29 03:06:53 +0100
committerJustin M. Keyes <justinkz@gmail.com>2017-10-29 03:06:53 +0100
commit2a3bcd1ff883429a3dd17e7ae5ddc1396abbad17 (patch)
treee3e2555c63c21ab05ba9820c38465e42f7abb465 /src/clint.py
parent3a938fff0954513f34704485e53dcb9a0cc7c59d (diff)
downloadrneovim-2a3bcd1ff883429a3dd17e7ae5ddc1396abbad17.tar.gz
rneovim-2a3bcd1ff883429a3dd17e7ae5ddc1396abbad17.tar.bz2
rneovim-2a3bcd1ff883429a3dd17e7ae5ddc1396abbad17.zip
rpc: Don't delay notifications when request is pending (#6544)
With the old behavior, if a GUI makes a blocking request that requires user interaction (like nvim_input()), it would not get any screen updates. The client, not nvim, should decide how to handle notifications during a pending request. If an rplugin wants to avoid async calls while a sync call is busy, it likely wants to avoid processing async calls while another async call also is handled as well. This may break the expectation of some existing rplugins. For compatibility, remote/define.vim reimplements the old behavior. Clients can opt-out by specifying `sync=urgent`. - Legacy hosts should be updated to use `sync=urgent`. They could add a flag indicating which async methods are always safe to call and which must wait until the main loop returns. - New hosts can expose the full asyncness, they don't need to offer both behaviors. ref #6532 ref #1398 d83868fe9071af1b4866594eac12f7aa0fa71b53
Diffstat (limited to 'src/clint.py')
-rwxr-xr-xsrc/clint.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/clint.py b/src/clint.py
index 4a41650ec4..e63175a69b 100755
--- a/src/clint.py
+++ b/src/clint.py
@@ -2531,6 +2531,7 @@ def CheckSpacing(filename, clean_lines, linenum, nesting_state, error):
r'(?<!\bkhash_t)'
r'(?<!\bkbtree_t)'
r'(?<!\bkbitr_t)'
+ r'(?<!\bPMap)'
r'\((?:const )?(?:struct )?[a-zA-Z_]\w*(?: *\*(?:const)?)*\)'
r' +'
r'-?(?:\*+|&)?(?:\w+|\+\+|--|\()', cast_line)