[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#23993: [PATCH] Fix cursor display (bug#23993)
From: |
Alan Third |
Subject: |
bug#23993: [PATCH] Fix cursor display (bug#23993) |
Date: |
Fri, 15 Jul 2016 21:15:55 +0100 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
* src/xdisp.c (get_phys_cursor_geometry): Fix invalid C operator.
---
src/xdisp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/xdisp.c b/src/xdisp.c
index 14d6f8f..efd5f54 100644
--- 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.
--
Alan Third