[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master bc8e256543 2/3: Re-fix narrowing problem in tramp-debug-buffer-co
From: |
Stefan Kangas |
Subject: |
master bc8e256543 2/3: Re-fix narrowing problem in tramp-debug-buffer-command-completion-p |
Date: |
Tue, 5 Jul 2022 12:38:40 -0400 (EDT) |
branch: master
commit bc8e2565431da27dbe4e3c3377760911f1e6432e
Author: Stefan Kangas <stefan@marxist.se>
Commit: Stefan Kangas <stefan@marxist.se>
Re-fix narrowing problem in tramp-debug-buffer-command-completion-p
* lisp/net/tramp.el (tramp-debug-buffer-command-completion-p):
Respect narrowing also for end of substring. (Bug#56225)
---
lisp/net/tramp.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index b580987e91..3725910714 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -1957,7 +1957,7 @@ The outline level is equal to the verbosity of the Tramp
message."
They are completed by \"M-x TAB\" only in Tramp debug buffers."
(with-current-buffer buffer
(string-equal
- (buffer-substring (point-min) (min 10 (point-max))) ";; Emacs:")))
+ (buffer-substring (point-min) (min (+ (point-min) 10) (point-max))) ";;
Emacs:")))
(put #'tramp-debug-buffer-command-completion-p 'tramp-suppress-trace t)