mirror of
https://github.com/neovim/neovim.git
synced 2025-11-22 10:06:33 +00:00
win: vim_FullName(): force backslashes #7287
- Replace obvious cases of '/' literal with PATHSEP. (There are still some remaining cases that need closer inspection.) - Fixup tests: ui/screen_basic closes #7117 ref https://github.com/neovim/neovim/issues/2471#issuecomment-271193714
This commit is contained in:
committed by
Justin M. Keyes
parent
981387b7c8
commit
2b133101cf
@@ -5,6 +5,7 @@ local feed, command = helpers.feed, helpers.command
|
||||
local insert = helpers.insert
|
||||
local eq = helpers.eq
|
||||
local eval = helpers.eval
|
||||
local iswin = helpers.iswin
|
||||
|
||||
describe('screen', function()
|
||||
local screen
|
||||
@@ -120,8 +121,15 @@ describe('Screen', function()
|
||||
|
||||
it('has correct default title with named file', function()
|
||||
local expected = 'myfile (/mydir) - NVIM'
|
||||
if iswin() then
|
||||
expected = 'myfile (C:\\mydir) - NVIM'
|
||||
end
|
||||
command('set title')
|
||||
command('file /mydir/myfile')
|
||||
if iswin() then
|
||||
command('file C:\\mydir\\myfile')
|
||||
else
|
||||
command('file /mydir/myfile')
|
||||
end
|
||||
screen:expect(function()
|
||||
eq(expected, screen.title)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user