Skip to content

Commit

Permalink
Avoid using deprecated eshell-prompt-regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
akreisher committed Mar 24, 2024
1 parent a516629 commit a9a0ae9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions eshell-syntax-highlighting.el
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@
(require 'esh-mode)
(require 'eshell)
(require 'em-alias)
(require 'em-dirs)
(require 'em-prompt))
(require 'em-dirs))


(require 'esh-util)
(require 'em-alias)
(require 'em-prompt)


(defgroup eshell-syntax-highlighting nil
Expand Down Expand Up @@ -445,9 +446,8 @@
(with-silent-modifications
(save-excursion
(goto-char eshell-last-output-end)
(forward-line 0)
(when (re-search-forward eshell-prompt-regexp (line-end-position) t)
(eshell-syntax-highlighting--parse-and-highlight 'command (point-max)))))
(eshell-next-prompt)
(eshell-syntax-highlighting--parse-and-highlight 'command (point-max))))
;; save-excursion marker is deleted when highlighting elisp,
;; so explicitly pop back to initial point.
(goto-char beg))))
Expand Down

0 comments on commit a9a0ae9

Please sign in to comment.