mirror of
https://github.com/neovim/neovim.git
synced 2026-01-04 10:26:42 +10:00
fix(cmdline): simplify and correct grapheme cluster adjustment
This commit is contained in:
@@ -38,6 +38,27 @@ describe('cmdline', function()
|
||||
feed([[:<C-R>="foo\nbar\rbaz"<CR>]])
|
||||
eq('foo\nbar\rbaz', fn.getcmdline())
|
||||
end)
|
||||
|
||||
it('pasting handles composing chars properly', function()
|
||||
local screen = Screen.new(60, 4)
|
||||
-- 'arabicshape' cheats and always redraws everything which trivially works,
|
||||
-- this test is for partial redraws in 'noarabicshape' mode.
|
||||
command('set noarabicshape')
|
||||
screen:attach()
|
||||
fn.setreg('a', '💻')
|
||||
feed(':test 🧑')
|
||||
screen:expect([[
|
||||
|
|
||||
{1:~ }|*2
|
||||
:test 🧑^ |
|
||||
]])
|
||||
feed('<c-r><c-r>a')
|
||||
screen:expect([[
|
||||
|
|
||||
{1:~ }|*2
|
||||
:test 🧑💻^ |
|
||||
]])
|
||||
end)
|
||||
end)
|
||||
|
||||
it('Ctrl-Shift-V supports entering unsimplified key notations', function()
|
||||
|
||||
Reference in New Issue
Block a user