mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
ddef39299f
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. |
||
---|---|---|
.. | ||
altscreen_spec.lua | ||
api_spec.lua | ||
buffer_spec.lua | ||
channel_spec.lua | ||
cursor_spec.lua | ||
edit_spec.lua | ||
ex_terminal_spec.lua | ||
helpers.lua | ||
highlight_spec.lua | ||
mouse_spec.lua | ||
scrollback_spec.lua | ||
tui_spec.lua | ||
window_spec.lua | ||
window_split_tab_spec.lua |