Commit 567b103c authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(viqr-pre-write-conversion): Make it work

for the case the arg FROM is a string.
parent 5d0ae729
......@@ -275,8 +275,12 @@ positions (integers or markers) specifying the stretch of the region."
(work-buf (get-buffer-create " *viet-work*")))
(set-buffer work-buf)
(insert-buffer-substring old-buf from to)
(viet-encode-viqr-region (point-min) (point-max))))
(if (stringp from)
(insert from)
(insert-buffer-substring old-buf from to))
(viet-encode-viqr-region (point-min) (point-max))
;; Should return nil as annotations.
(provide 'language/viet-util)
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