aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorPo Lu2024-02-01 16:16:09 +0800
committerPo Lu2024-02-01 16:16:09 +0800
commit881a1ade30d2efacf9fcbd136b8fea722760f36e (patch)
tree3f00756ea293c9c25186c716b0e5cc205894af93 /java
parentb86bc02096c65517b9a29c20635ece100864fc62 (diff)
downloademacs-881a1ade30d2efacf9fcbd136b8fea722760f36e.tar.gz
emacs-881a1ade30d2efacf9fcbd136b8fea722760f36e.zip
Prevent continuation from affecting tab width in/after line prefix
* src/dispextern.h (struct it) <wrap_prefix_width>: New field, synchronized with current_x when producing glyphs for wrap prefixes, and subtracted from it->current_x when computing tab widths. * src/term.c (produce_glyphs): Set wrap_prefix_width. * src/xdisp.c (start_display, display_min_width, move_it_to) (move_it_vertically_backward, move_it_by_lines) (window_text_pixel_size, display_tab_bar_line) (display_tool_bar_line, redisplay_internal, redisplay_window) (try_window_id, insert_left_trunc_glyphs) (extend_face_to_end_of_line, display_line) (Fmove_point_visually): Set or clear wrap_prefix_width as appropriate. (gui_produce_glyphs): Set or clear it->wrap_prefix_width. When computing the base position of a tab character, do not subtract the continuation line width if a line prefix is the current iterator method. Subtract the wrap_prefix_width otherwise, in order that the width of the tab is computed free of influence from the wrap prefix.
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions