]> git.eshelyaron.com Git - emacs.git/commitdiff
* xdisp.c (handle_invisible_prop): Don't update it->position with
authorChong Yidong <cyd@stupidchicken.com>
Mon, 6 Mar 2006 18:41:05 +0000 (18:41 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Mon, 6 Mar 2006 18:41:05 +0000 (18:41 +0000)
a buffer position if we're in a display string.

src/ChangeLog
src/xdisp.c

index b4848e99bef811c2527e8b41e8a28e542e28792a..1f27fc7a6f9e00398ae350c9eb2b5f2af1cc5bab 100644 (file)
@@ -1,3 +1,8 @@
+2006-03-06  Chong Yidong  <cyd@stupidchicken.com>
+
+       * xdisp.c (handle_invisible_prop): Don't update it->position with
+       a buffer position if we're in a display string.
+
 2006-03-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 
        * macterm.h (MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH)
index 2be65a70af94f8d142010a80961379b3d8d50e43..be40d7652ac7340f7e9f958c7f8b751c6fc92144 100644 (file)
@@ -3658,8 +3658,11 @@ handle_invisible_prop (it)
                  the invisible text.  Otherwise the cursor would be
                  placed _after_ the ellipsis when the point is after the
                  first invisible character.  */
-              it->position.charpos = IT_CHARPOS (*it) - 1;
-              it->position.bytepos = CHAR_TO_BYTE (it->position.charpos);
+             if (!STRINGP (it->object))
+               {
+                 it->position.charpos = IT_CHARPOS (*it) - 1;
+                 it->position.bytepos = CHAR_TO_BYTE (it->position.charpos);
+               }
               setup_for_ellipsis (it, 0);
             }
        }