[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 2 bugs in posn-at-x-y on a tty
From: |
Nick Roberts |
Subject: |
Re: 2 bugs in posn-at-x-y on a tty |
Date: |
Sat, 15 Jan 2005 10:47:50 +1300 |
> > The other bug still seems to be present: the mode-line string seems to be
> > one character out (I'm a bit confused because your message also seems to
> > imply that this bug was also fixed).
>
> Doesn't it work if you set whole = t in this case too ?
No. Its present even when there is no margin but the following patch seems to
cure it:
*** /home/nick/emacs/src/dispnew.c.~1.337.~ 2005-01-15 10:43:34.000000000
+1300
--- /home/nick/emacs/src/dispnew.c 2005-01-15 10:44:29.000000000 +1300
***************
*** 5842,5848 ****
it's the one we were looking for. */
glyph = row->glyphs[TEXT_AREA];
end = glyph + row->used[TEXT_AREA];
! for (x0 = *x; glyph < end && x0 > glyph->pixel_width; ++glyph)
x0 -= glyph->pixel_width;
*x = glyph - row->glyphs[TEXT_AREA];
if (glyph < end)
--- 5842,5848 ----
it's the one we were looking for. */
glyph = row->glyphs[TEXT_AREA];
end = glyph + row->used[TEXT_AREA];
! for (x0 = *x; glyph < end && x0 >= glyph->pixel_width; ++glyph)
x0 -= glyph->pixel_width;
*x = glyph - row->glyphs[TEXT_AREA];
if (glyph < end)