branch: elpa/inf-ruby commit 6399a3668224aa48423c54e81383f73e5e39439a Author: Dmitry Gutov <dmi...@gutov.dev> Commit: Dmitry Gutov <dmi...@gutov.dev>
Avoid timers firing during completion process output This is to avoid `company--sneaky-refresh` or similar being called, it makes the cursor jump. --- inf-ruby.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inf-ruby.el b/inf-ruby.el index 19e5bed0e5..09adbda087 100755 --- a/inf-ruby.el +++ b/inf-ruby.el @@ -961,7 +961,7 @@ Then switch to the process buffer." (ruby-shell--encode-string line)))) (process-send-string proc completion-snippet) (while (and (not (string-match inf-ruby-prompt-pattern kept)) - (accept-process-output proc 2))) + (accept-process-output proc 2 nil 1))) (setq completions (butlast (split-string kept "\r?\n") 2)) ;; Subprocess echoes output on Windows and OS X. (when (and completions (string= (concat (car completions) "\n") completion-snippet))