diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2020-01-16 15:48:42 +0100 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2020-01-16 19:35:45 +0100 |
commit | b4a92aadd274c21a32baa68e2a460910ef9c77f5 (patch) | |
tree | 0464fc18967fbcf1717c1fb29eae6be6945a4faa /test/functional/ui/messages_spec.lua | |
parent | 6e78b2162382718b638c4532a155e5c3f9ed7515 (diff) | |
download | rneovim-b4a92aadd274c21a32baa68e2a460910ef9c77f5.tar.gz rneovim-b4a92aadd274c21a32baa68e2a460910ef9c77f5.tar.bz2 rneovim-b4a92aadd274c21a32baa68e2a460910ef9c77f5.zip |
messages: echo "line1\r\nline2" should not clear line1
Diffstat (limited to 'test/functional/ui/messages_spec.lua')
-rw-r--r-- | test/functional/ui/messages_spec.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/functional/ui/messages_spec.lua b/test/functional/ui/messages_spec.lua index 25b38b1feb..dfc3d045e8 100644 --- a/test/functional/ui/messages_spec.lua +++ b/test/functional/ui/messages_spec.lua @@ -938,6 +938,30 @@ vimComment xxx match /\s"[^\-:.%#=*].*$/ms=s+1,lc=1 excludenl contains=@vim {7: 0,0-1 100% }| ]]} end) + + it('supports echo with CRLF line separators', function() + feed(':echo "line 1\\r\\nline 2"<cr>') + screen:expect{grid=[[ + | + {1:~ }| + {1:~ }| + {3: }| + line 1 | + line 2 | + {4:Press ENTER or type command to continue}^ | + ]]} + + feed('<cr>:echo "abc\\rz"<cr>') + screen:expect{grid=[[ + ^ | + {1:~ }| + {1:~ }| + {1:~ }| + {1:~ }| + {1:~ }| + zbc | + ]]} + end) end) describe('ui/ext_messages', function() |