That's a bug, need to be both a slash and an @ beforehand

This commit is contained in:
Benson Chu 2023-02-27 20:36:01 -06:00
parent 91d1d74c45
commit 7826be40d3

View file

@ -135,7 +135,17 @@
:config
(defun my/should-backwards-tramp ()
(and (not (eq (char-before) ?:))
(not (eq (char-before) ?@))))
(not (eq (char-before) ?@))
(save-excursion
(re-search-backward "@" nil t))
(save-excursion
(re-search-backward "/" nil t))
(< (save-excursion
(re-search-backward "/" nil t)
(point))
(save-excursion
(re-search-backward "@" nil t)
(point)))))
(defun my/vertico-directory-up (&optional n)
(interactive "p")