projects
/
m17n
/
m17n-lib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ace4eee
)
(get_gstring): If cursor_width or cursor_bidi is changed, don't
author
handa
<handa>
Mon, 26 Jul 2004 12:52:17 +0000
(12:52 +0000)
committer
handa
<handa>
Mon, 26 Jul 2004 12:52:17 +0000
(12:52 +0000)
use a cache.
src/draw.c
patch
|
blob
|
history
diff --git
a/src/draw.c
b/src/draw.c
index
8069d40
..
25e2867
100644
(file)
--- a/
src/draw.c
+++ b/
src/draw.c
@@
-1512,7
+1512,9
@@
get_gstring (MFrame *frame, MText *mt, int pos, int to, MDrawControl *control)
|| gstring->tick != frame->tick
|| memcmp (control, &gstring->control,
(char *) (&control->with_cursor)
- - (char *) (control)))
+ - (char *) (control))
+ || control->cursor_width != gstring->control.cursor_width
+ || control->cursor_bidi != gstring->control.cursor_bidi)
{
mtext_detach_property (prop);
gstring = NULL;