mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
fix(terminal): do not trim whitespace that is actually in the terminal (#16423)
This commit is contained in:
@@ -785,7 +785,8 @@ describe('API: buffer events:', function()
|
||||
|
||||
local function lines_subset(first, second)
|
||||
for i = 1,#first do
|
||||
if first[i] ~= second[i] then
|
||||
-- need to ignore trailing spaces
|
||||
if first[i]:gsub(' +$', '') ~= second[i]:gsub(' +$', '') then
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user