Skip to content

Commit

Permalink
[Core] Handle empty variadic nodes when refreshing.
Browse files Browse the repository at this point in the history
Fixes #1065
  • Loading branch information
Alexander-Miller committed Nov 8, 2023
1 parent 45de11a commit 97b2cff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/elisp/treemacs-macros.el
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,9 @@ not work keep it on the same line."
(error (ignore)))))
(treemacs--evade-image)
(when (get-text-property (point) 'invisible)
(goto-char (next-single-property-change (point) 'invisible)))
(goto-char (or
(next-single-property-change (point) 'invisible)
(point-min))))
(when curr-win-line
(-let [buffer-point (point)]
(with-selected-window curr-window
Expand Down

0 comments on commit 97b2cff

Please sign in to comment.