Commit c5536f37 authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(bookmark-jump-noselect): Use goto-char instead of

 	forward-char/backward-char to pay attention to multibyte
 	characters..
parent db61442b
......@@ -1114,10 +1114,10 @@ of the old one in the permanent bookmark record."
;; rather than after and remain perhaps unaware of the changes.
(if forward-str
(if (search-forward forward-str (point-max) t)
(backward-char (length forward-str))))
(goto-char (match-beginning 0))))
(if behind-str
(if (search-backward behind-str (point-min) t)
(forward-char (length behind-str))))
(goto-char (match-end 0))))
;; added by db
(setq bookmark-current-bookmark str)
(cons (current-buffer) (point)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment