emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/trunk r101149: Fix last change in buffer_po


From: Eli Zaretskii
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r101149: Fix last change in buffer_posn_from_coords for text terminals.
Date: Sat, 21 Aug 2010 00:01:36 +0300
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 101149 [merge]
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Sat 2010-08-21 00:01:36 +0300
message:
  Fix last change in buffer_posn_from_coords for text terminals.
  
   dispnew.c (buffer_posn_from_coords): Add one-character offset for R2L lines.
modified:
  src/ChangeLog
  src/dispnew.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2010-08-20 20:00:00 +0000
+++ b/src/ChangeLog     2010-08-20 21:01:36 +0000
@@ -1,5 +1,8 @@
 2010-08-20  Eli Zaretskii  <address@hidden>
 
+       * dispnew.c (buffer_posn_from_coords): Fix last change for text
+       terminals: add one-character offset for R2L lines.
+
        * emacs.c <emacs_version>: Add a comment regarding
        msdos/mainmake.v2's dependency on the syntax of this declaration.
 

=== modified file 'src/dispnew.c'
--- a/src/dispnew.c     2010-08-20 14:19:39 +0000
+++ b/src/dispnew.c     2010-08-20 20:55:09 +0000
@@ -5402,7 +5402,10 @@
        iterator doesn't know about that.)  The following line adjusts
        the pixel position to the iterator geometry, which is what
        move_it_* routines use.  */
-    to_x = window_box_width (w, TEXT_AREA) - to_x;
+    to_x = window_box_width (w, TEXT_AREA) - to_x
+          /* Text terminals need a one-character offset to get it right.  */
+          - (FRAME_MSDOS_P (WINDOW_XFRAME (w))
+             || FRAME_TERMCAP_P (WINDOW_XFRAME (w)));
 
   /* Now move horizontally in the row to the glyph under *X. */
   move_it_in_display_line (&it, ZV, to_x, MOVE_TO_X);


reply via email to

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