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:
Ignas Anikevicius
2017-09-18 21:06:55 +03:00
committed by Justin M. Keyes
parent 981387b7c8
commit 2b133101cf
4 changed files with 92 additions and 3 deletions

View File

@@ -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)