qemacs-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemacs-commit] qemacs qe.c


From: Charlie Gordon
Subject: [Qemacs-commit] qemacs qe.c
Date: Sat, 31 Dec 2016 06:28:41 -0500 (EST)

CVSROOT:        /sources/qemacs
Module name:    qemacs
Changes by:     Charlie Gordon <chqrlie>        16/12/31 06:28:41

Modified files:
        .              : qe.c 

Log message:
        display: disable broken bidir display

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/qe.c?cvsroot=qemacs&r1=1.242&r2=1.243

Patches:
Index: qe.c
===================================================================
RCS file: /sources/qemacs/qemacs/qe.c,v
retrieving revision 1.242
retrieving revision 1.243
diff -u -b -r1.242 -r1.243
--- qe.c        31 Dec 2016 11:12:16 -0000      1.242
+++ qe.c        31 Dec 2016 11:28:41 -0000      1.243
@@ -3202,19 +3202,23 @@
                 int _offset2 = s->line_offsets[j][1];
                 int hex_mode = s->line_hex_mode[j];
                 int w = s->line_char_widths[j];
+                x += w;
                 if ((hex_mode == s->hex_mode || s->hex_mode == -1) &&
                     _offset1 >= 0 && _offset2 >= 0) {
+#if 0
+                    /* probably broken, bidir needs rework */
                     if (s->base == DIR_RTL) {
                         if (s->cursor_func(s, _offset1, _offset2, s->line_num,
-                                           x + w, y, -w, line_height, 
hex_mode))
+                                           x, y, -w, line_height, hex_mode))
                             s->eod = 1;
-                    } else {
+                    } else 
+#endif
+                    {
                         if (s->cursor_func(s, _offset1, _offset2, s->line_num,
-                                           x, y, w, line_height, hex_mode))
+                                           x - w, y, w, line_height, hex_mode))
                             s->eod = 1;
                     }
                 }
-                x += w;
             }
         }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]