]> git.eshelyaron.com Git - emacs.git/commitdiff
(handle_composition_prop): Set stop_charpos before push_it.
authorKim F. Storm <storm@cua.dk>
Tue, 27 Jun 2006 11:21:31 +0000 (11:21 +0000)
committerKim F. Storm <storm@cua.dk>
Tue, 27 Jun 2006 11:21:31 +0000 (11:21 +0000)
src/xdisp.c

index 0c46545a2ac61f0d09ceb7cf3ceada5fe5e4952d..55ee9fc20e75cd65bdde48f519e59191986f481a 100644 (file)
@@ -4488,7 +4488,9 @@ handle_composition_prop (it)
              return HANDLED_RECOMPUTE_PROPS;
            }
 
+         it->stop_charpos = end;
          push_it (it);
+
          it->method = GET_FROM_COMPOSITION;
          it->cmp_id = id;
          it->cmp_len = COMPOSITION_LENGTH (prop);
@@ -4498,7 +4500,6 @@ handle_composition_prop (it)
          it->len = (STRINGP (it->string)
                     ? string_char_to_byte (it->string, end)
                     : CHAR_TO_BYTE (end)) - pos_byte;
-         it->stop_charpos = end;
          handled = HANDLED_RETURN;
        }
     }