]> git.eshelyaron.com Git - emacs.git/commitdiff
(handle_auto_composed_prop): Fix setting of limit.
authorKenichi Handa <handa@m17n.org>
Mon, 29 Dec 2003 07:57:00 +0000 (07:57 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 29 Dec 2003 07:57:00 +0000 (07:57 +0000)
src/xdisp.c

index 8a5e101c370ef2cb4d22a0cb4e68a0c98fabfb97..d772fa28219be6d6b7022b36116d95503d6e6b47 100644 (file)
@@ -3792,8 +3792,11 @@ handle_auto_composed_prop (it)
          
          /* As Fnext_single_char_property_change is very slow, we
             limit the search to the current line.  */
-         if (! STRINGP (it->string))
+         if (STRINGP (it->string))
+           limit = SCHARS (it->string);
+         else
            limit = make_number (find_next_newline_no_quit (pos, 1));
+
          next = (Fnext_single_property_change
                     (make_number (pos), Qauto_composed, it->string, limit));
          if (XINT (next) < XINT (limit))