Commit 1d1180f7 authored by Kenichi Handa's avatar Kenichi Handa

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

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