Skip to content

Commit 33c15a5

Browse files
committed
Silence byte-compiler
In truth `looking-back' does not (yet) require the second argument, but since 5161c9ca6a6107da30d411fb2ad72e01d08e5704 it claims that it does. Instead of merely silencing this warning it would be better to provide a non-nil value for LIMIT. The reason that this function is now advertised as requiring two arguments is that it may perform horribly if no proper limit is specified.
1 parent 0d9cabc commit 33c15a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vterm.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,7 @@ the return value is `t' when cursor moved."
11691169
(get-text-property (1- (point)) 'vterm-line-wrap))
11701170
t)
11711171
((and (= (point) (+ 4 pt))
1172-
(looking-back (regexp-quote "^[[C"))) ;escape code for <right>
1172+
(looking-back (regexp-quote "^[[C") nil)) ;escape code for <right>
11731173
(dotimes (_ 3) (vterm-send-key "<backspace>" nil nil nil t)) ;;delete "^[[C"
11741174
nil)
11751175
((> (point) (1+ pt)) ;auto suggest
@@ -1195,7 +1195,7 @@ Return count of moved characeters."
11951195
"\n"))
11961196
t)
11971197
((and (= (point) (+ 4 pt))
1198-
(looking-back (regexp-quote "^[[D"))) ;escape code for <left>
1198+
(looking-back (regexp-quote "^[[D") nil)) ;escape code for <left>
11991199
(dotimes (_ 3) (vterm-send-key "<backspace>" nil nil nil t)) ;;delete "^[[D"
12001200
nil)
12011201
(t nil))))

0 commit comments

Comments
 (0)