Fix over-aggressive pin truncation
Would truncate the rest of the buffer in some cases.
This commit is contained in:
parent
64c2efa2fc
commit
106f3324e8
1 changed files with 5 additions and 4 deletions
|
@ -228,10 +228,11 @@ verbosity when editing a file in `doom-private-dir' or `doom-emacs-dir'."
|
|||
(goto-char (match-beginning 0))
|
||||
(and (stringp (plist-get (sexp-at-point) :pin))
|
||||
(search-forward ":pin" nil t)
|
||||
(put-text-property (re-search-forward "\"[^\"]\\{10\\}" nil t)
|
||||
(progn (re-search-forward "\"" nil t)
|
||||
(match-beginning 0))
|
||||
'display "...")))
|
||||
(let ((start (re-search-forward "\"[^\"]\\{10\\}" nil t))
|
||||
(finish (and (re-search-forward "\"" (line-end-position) t)
|
||||
(match-beginning 0))))
|
||||
(when (and start finish)
|
||||
(put-text-property start finish 'display "...")))))
|
||||
nil)
|
||||
|
||||
;;;###autoload
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue