mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 01:16:31 +00:00
refactor(grid): reimplement 'rightleft' as a post-processing step
problem: checks for wp->w_p_rl are all over the place, making simple things like "advance column one cell" incredibly complicated. solution: always fill linebuf_char[] using an incrementing counter, and then mirror the buffer as a post-processing step This was "easier" that I first feared, because the stupid but simple workaround for things like keeping linenumbers still left-right, e.g. "mirror them and them mirror them once more" is more or less what vim did already. So let's just keep doing that.
This commit is contained in:
@@ -566,7 +566,7 @@ void spell_suggest(int count)
|
||||
}
|
||||
vim_snprintf(IObuff, IOSIZE, "%2d", i + 1);
|
||||
if (cmdmsg_rl) {
|
||||
rl_mirror_ascii(IObuff);
|
||||
rl_mirror_ascii(IObuff, NULL);
|
||||
}
|
||||
msg_puts(IObuff);
|
||||
|
||||
@@ -592,7 +592,7 @@ void spell_suggest(int count)
|
||||
}
|
||||
if (cmdmsg_rl) {
|
||||
// Mirror the numbers, but keep the leading space.
|
||||
rl_mirror_ascii(IObuff + 1);
|
||||
rl_mirror_ascii(IObuff + 1, NULL);
|
||||
}
|
||||
msg_advance(30);
|
||||
msg_puts(IObuff);
|
||||
|
Reference in New Issue
Block a user