mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-14 09:39:42 +00:00
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)
This commit is contained in:
parent
9d866a1f8d
commit
bc8e256543
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user