[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#23993: [PATCH] Fix cursor display (bug#23993)
From: |
Eli Zaretskii |
Subject: |
bug#23993: [PATCH] Fix cursor display (bug#23993) |
Date: |
Sat, 16 Jul 2016 09:54:53 +0300 |
> Date: Fri, 15 Jul 2016 21:15:55 +0100
> From: Alan Third <alan@idiocy.org>
> Cc: 23993@debbugs.gnu.org, Eli Zaretskii <eliz@gnu.org>
>
> --- a/src/xdisp.c
> +++ b/src/xdisp.c
> @@ -2237,7 +2237,7 @@ get_phys_cursor_geometry (struct window *w, struct
> glyph_row *row,
> ascent = row->ascent;
> if (row->ascent < glyph->ascent)
> {
> - y =- glyph->ascent - row->ascent;
> + y -= glyph->ascent - row->ascent;
> ascent = glyph->ascent;
> }
>
> --
> Eli, I just wanted to run this by you because you wrote this code and
> I'm not sure if that =- is just a typo or it's something I've never
> seen before. My guess is it's a typo and gcc happily treats it as -=,
> but clang handles it more like 'y = y - a - b' resulting in odd
> behaviour on OS X.
It's a typo, thanks for catching it.