(last-sexp-toggle-display): Fixed cursor position when toggle abbreviated

display.
This commit is contained in:
Eli Zaretskii 2007-01-20 15:43:48 +00:00
parent 2d5ed88d31
commit f56cd1335c
2 changed files with 7 additions and 0 deletions

View file

@ -490,6 +490,8 @@ alternative printed representations that can be displayed."
(point (point)))
(delete-region beg end)
(insert (nth 1 value))
(or (= beg point)
(setq point (1- (point))))
(last-sexp-setup-props beg (point)
(nth 0 value)
(nth 2 value)