neovim/test/functional/terminal
bfredl ddef39299f refactor(grid): do arabic shaping in one place
The 'arabicshape' feature of vim is a transformation of unicode text to
make arabic and some related scripts look better at display time. In
particular the content of a cell will be adjusted depending on the
(original) content of the cells just before and after it.

This is implemented by the arabic_shape() function in nvim. Before this
commit, shaping was invoked in four different contexts:

- when rendering buffer text in win_line()
- in line_putchar() for rendering virtual text
- as part of grid_line_puts, used by messages and statuslines and
  similar
- as part of draw_cmdline() for drawing the cmdline

This replaces all these with a post-processing step in grid_put_linebuf(),
which has become the entry point for all text rendering after recent
refactors.

An aim of this is to make the handling of multibyte text yet simpler.
One of the main reasons multibyte chars needs to be "parsed" into
codepoint arrays of composing chars is so that these could be inspected
for the purpose of shaping. This can likely be vastly simplified in many
contexts where only the total length (in bytes) and width of composed
char is needed.
2023-10-08 15:22:45 +02:00
..
altscreen_spec.lua test: simplify platform detection (#21020) 2022-11-22 08:13:30 +08:00
api_spec.lua fix(tui): grid_clear properly clears the screen 2023-05-03 14:58:25 +02:00
buffer_spec.lua fix(terminal): forward horizontal mouse scrolling (#24552) 2023-08-04 10:24:27 +08:00
channel_spec.lua test(terminal/channel_spec): fix screen test immediate success (#23192) 2023-04-19 12:10:06 +08:00
cursor_spec.lua test: reduce flakiness (#24443) 2023-07-23 12:46:56 +08:00
edit_spec.lua test(windows): unskip working tests (#25153) 2023-09-15 16:33:26 +08:00
ex_terminal_spec.lua test: update tests for auto-closing :term buffers 2023-08-10 09:08:25 -05:00
helpers.lua test: reduce flakiness (#24443) 2023-07-23 12:46:56 +08:00
highlight_spec.lua test: simplify platform detection (#21020) 2022-11-22 08:13:30 +08:00
mouse_spec.lua fix(terminal): handle horizontal scrolling in another window (#24828) 2023-08-21 23:19:12 +08:00
scrollback_spec.lua test: only trim trailing spaces in swapfile tests (#25341) 2023-09-24 22:03:54 +08:00
tui_spec.lua refactor(grid): do arabic shaping in one place 2023-10-08 15:22:45 +02:00
window_spec.lua fix(terminal): check terminal size at end of screen update (#25480) 2023-10-03 10:23:03 +08:00
window_split_tab_spec.lua test: don't unnecessarily specify win/buf for nvim_(get|set)_option_value 2023-05-22 13:02:07 +06:00