summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-09-03 13:59:56 +0100
committerw0rp <devw0rp@gmail.com>2018-09-03 13:59:56 +0100
commitfddbfdef12db62d9dd8f55ef659967817c749930 (patch)
treec04a1b7f5a765c3a731dbc0ce01c85fbbda063ce /autoload
parenta746ea2bfc1e01b9455d9efec3e95799be4177f2 (diff)
downloadale-fddbfdef12db62d9dd8f55ef659967817c749930.zip
#1875 Do not lint and so on when an operator is pending
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/autoload/ale.vim b/autoload/ale.vim
index 51c0ce83..3747539b 100644
--- a/autoload/ale.vim
+++ b/autoload/ale.vim
@@ -62,6 +62,11 @@ function! ale#ShouldDoNothing(buffer) abort
return 1
endif
+ " Don't start linting and so on when an operator is pending.
+ if ale#util#Mode(1) is# 'no'
+ return 1
+ endif
+
" Do nothing if running in the sandbox.
if ale#util#InSandbox()
return 1