mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
feat(nvim_open_term): convert LF => CRLF (#26384)
Problem: Unlike termopen(), nvim_open_term() PTYs do not carriage-return the cursor on newline ("\n") input. nvim --clean :let chan_id = nvim_open_term(1, {}) :call chansend(chan_id, ["here", "are", "some", "lines"]) Actual behavior: here are some lines Expected behaviour: here are some lines Solution: Add `force_crlf` option, and enable it by default.
This commit is contained in:
@ -576,21 +576,21 @@ describe("pending scrollback line handling", function()
|
||||
]]
|
||||
screen:expect [[
|
||||
{1: 1 }^a |
|
||||
{1: 2 } a |
|
||||
{1: 3 } a |
|
||||
{1: 4 } a |
|
||||
{1: 5 } a |
|
||||
{1: 6 } a |
|
||||
{1: 2 }a |
|
||||
{1: 3 }a |
|
||||
{1: 4 }a |
|
||||
{1: 5 }a |
|
||||
{1: 6 }a |
|
||||
|
|
||||
]]
|
||||
feed('G')
|
||||
screen:expect [[
|
||||
{1: 7 } a |
|
||||
{1: 8 } a |
|
||||
{1: 9 } a |
|
||||
{1: 10 } a |
|
||||
{1: 11 } a |
|
||||
{1: 12 } ^a |
|
||||
{1: 7 }a |
|
||||
{1: 8 }a |
|
||||
{1: 9 }a |
|
||||
{1: 10 }a |
|
||||
{1: 11 }a |
|
||||
{1: 12 }^a |
|
||||
|
|
||||
]]
|
||||
assert_alive()
|
||||
|
Reference in New Issue
Block a user