summaryrefslogtreecommitdiff
path: root/src/dispextern.h
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2011-08-18 19:09:40 +0300
committerEli Zaretskii <eliz@gnu.org>2011-08-18 19:09:40 +0300
commit9778ebccaaf3bbb3d2e05a45943af32b7751e8c8 (patch)
treef2043644498786fee656778928cd5c133ecddc1d /src/dispextern.h
parentf635daa1e056a564d13b4ef1ea8d1a4ff5b7401c (diff)
downloademacs-9778ebccaaf3bbb3d2e05a45943af32b7751e8c8.tar.gz
Fix bidi reordering around TAB characters covered by display properties.
src/dispextern.h (struct bidi_it): Move disp_pos and disp_prop_p members before the level stack, so they would be saved and restored when copying iterator state. Fixes incorrect reordering around TABs covered by display properties.
Diffstat (limited to 'src/dispextern.h')
-rw-r--r--src/dispextern.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dispextern.h b/src/dispextern.h
index fd408c713c6..084a3f9e07f 100644
--- a/src/dispextern.h
+++ b/src/dispextern.h
@@ -1859,6 +1859,9 @@ struct bidi_it {
EMACS_INT ignore_bn_limit; /* position until which to ignore BNs */
bidi_dir_t sor; /* direction of start-of-run in effect */
int scan_dir; /* direction of text scan, 1: forw, -1: back */
+ EMACS_INT disp_pos; /* position of display string after ch */
+ int disp_prop_p; /* if non-zero, there really is a
+ `display' property/string at disp_pos */
int stack_idx; /* index of current data on the stack */
/* Note: Everything from here on is not copied/saved when the bidi
iterator state is saved, pushed, or popped. So only put here
@@ -1867,9 +1870,6 @@ struct bidi_it {
struct bidi_string_data string; /* string to reorder */
bidi_dir_t paragraph_dir; /* current paragraph direction */
EMACS_INT separator_limit; /* where paragraph separator should end */
- EMACS_INT disp_pos; /* position of display string after ch */
- int disp_prop_p; /* if non-zero, there really is a
- `display' property/string at disp_pos */
unsigned first_elt : 1; /* if non-zero, examine current char first */
unsigned new_paragraph : 1; /* if non-zero, we expect a new paragraph */
unsigned frame_window_p : 1; /* non-zero if displaying on a GUI frame */