# HG changeset patch # User Kenichi Handa # Date 1112254698 0 # Node ID 6dffc0a6ed262185f36e76c904ba510dab8e74a7 # Parent b18a0b88ee06263711241423799c35193bffcaee (thai-find-word-ends): Pay attention to the case that we reach the end of buffer. diff -r b18a0b88ee06 -r 6dffc0a6ed26 lisp/language/thai-word.el --- a/lisp/language/thai-word.el Thu Mar 31 04:45:27 2005 +0000 +++ b/lisp/language/thai-word.el Thu Mar 31 07:38:18 2005 +0000 @@ -10780,7 +10780,7 @@ ;; character by character. (while this (setq pos (1+ pos) - char (char-after pos) + char (or (char-after pos) 0) category-set (char-category-set char)) ;; If the current sequence is recorded in `thai-word-table' ;; (i.e. (car THIS) is 1) and the following Thai character is