Commits

Anonymous committed 20e6d1c

Fix bug #10263 with assertion violation using telugu-itrans input method.

src/xdisp.c (RECORD_MAX_MIN_POS): Use IT->cmp_it.charpos only if
IT->string is nil.

Comments (0)

Files changed (2)

+2011-12-10  Eli Zaretskii  <eliz@gnu.org>
+
+	* xdisp.c (RECORD_MAX_MIN_POS): Use IT->cmp_it.charpos only if
+	IT->string is nil.  (Bug#10263)
+
 2011-12-10  Jan Djärv  <jan.h.d@swipnet.se>
 
 	* nsterm.h (x_free_frame_resources): Declare.
 #define RECORD_MAX_MIN_POS(IT)					\
   do								\
     {								\
-      int composition_p = (IT)->what == IT_COMPOSITION;		\
+      int composition_p = !STRINGP ((IT)->string)		\
+	&& ((IT)->what == IT_COMPOSITION);			\
       EMACS_INT current_pos =					\
 	composition_p ? (IT)->cmp_it.charpos			\
 		      : IT_CHARPOS (*(IT));			\