mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-05 12:37:33 -05:00
Fix over-aggressive pin truncation
Would truncate the rest of the buffer in some cases.
This commit is contained in:
@ -228,10 +228,11 @@ verbosity when editing a file in `doom-private-dir' or `doom-emacs-dir'."
|
|||||||
(goto-char (match-beginning 0))
|
(goto-char (match-beginning 0))
|
||||||
(and (stringp (plist-get (sexp-at-point) :pin))
|
(and (stringp (plist-get (sexp-at-point) :pin))
|
||||||
(search-forward ":pin" nil t)
|
(search-forward ":pin" nil t)
|
||||||
(put-text-property (re-search-forward "\"[^\"]\\{10\\}" nil t)
|
(let ((start (re-search-forward "\"[^\"]\\{10\\}" nil t))
|
||||||
(progn (re-search-forward "\"" nil t)
|
(finish (and (re-search-forward "\"" (line-end-position) t)
|
||||||
(match-beginning 0))
|
(match-beginning 0))))
|
||||||
'display "...")))
|
(when (and start finish)
|
||||||
|
(put-text-property start finish 'display "...")))))
|
||||||
nil)
|
nil)
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
|
Reference in New Issue
Block a user