aboutsummaryrefslogtreecommitdiff
path: root/test/functional/core
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2020-12-28 20:40:07 -0500
committerJames McCoy <jamessan@jamessan.com>2021-01-31 07:54:21 -0500
commita199363be246dc097b74abfe2703c5058aa8ad45 (patch)
tree929f90f1dc533980ad2a8fb524f5665a85e76354 /test/functional/core
parenta54ac073fb0a636717cdd8791e043d301a642726 (diff)
downloadrneovim-a199363be246dc097b74abfe2703c5058aa8ad45.tar.gz
rneovim-a199363be246dc097b74abfe2703c5058aa8ad45.tar.bz2
rneovim-a199363be246dc097b74abfe2703c5058aa8ad45.zip
Pass environment on to pty processes on Windows
vim-patch:8.2.0239: MS-Windows: 'env' job option does not override existing vars Problem: MS-Windows: 'env' job option does not override existing environment variables. (Tim Pope) Solution: Set the environment variables later. (Yasuhiro Matsumoto, closes vim/vim#5485, closes vim/vim#5608) https://github.com/vim/vim/commit/355757aed6ae2ae5446882570d89f243e4805937 Co-authored-by: erw7 <erw7.github@gmail.com>
Diffstat (limited to 'test/functional/core')
-rw-r--r--test/functional/core/job_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/core/job_spec.lua b/test/functional/core/job_spec.lua
index 3f7595c149..69b221d7e4 100644
--- a/test/functional/core/job_spec.lua
+++ b/test/functional/core/job_spec.lua
@@ -31,9 +31,9 @@ describe('jobs', function()
nvim('set_var', 'channel', channel)
source([[
function! Normalize(data) abort
- " Windows: remove ^M
+ " Windows: remove ^M and term escape sequences
return type([]) == type(a:data)
- \ ? map(a:data, 'substitute(v:val, "\r", "", "g")')
+ \ ? map(a:data, 'substitute(substitute(v:val, "\r", "", "g"), "\x1b\\%(\\]\\d\\+;.\\{-}\x07\\|\\[.\\{-}[\x40-\x7E]\\)", "", "g")')
\ : a:data
endfunction
function! OnEvent(id, data, event) dict