From 1568bf81281507aaaa8c71af85e244e94bd2924c Mon Sep 17 00:00:00 2001 From: w0rp Date: Tue, 19 Dec 2017 18:23:09 +0000 Subject: Fix the mscs tests on Windows, and use the improved Simplify for all tests instead. --- autoload/ale/path.vim | 17 ----------------- autoload/ale/test.vim | 2 +- 2 files changed, 1 insertion(+), 18 deletions(-) (limited to 'autoload') diff --git a/autoload/ale/path.vim b/autoload/ale/path.vim index b0f4dca6..16dabf21 100644 --- a/autoload/ale/path.vim +++ b/autoload/ale/path.vim @@ -17,23 +17,6 @@ function! ale#path#Simplify(path) abort return substitute(simplify(l:win_path), '^\\\+', '\', 'g') " no-custom-checks endfunction -" This function is mainly used for testing. -" -" If an additional 'add_drive' argument is given, the current drive letter -" will be prefixed to any absolute paths on Windows. -function! ale#path#Winify(path, ...) abort - let l:new_path = ale#path#Simplify(a:path) - - if has('win32') - " Add a drive letter to \foo\bar paths, if needed. - if a:0 && a:1 is# 'add_drive' && l:new_path[:0] is# '\' - let l:new_path = fnamemodify('.', ':p')[:1] . l:new_path - endif - endif - - return l:new_path -endfunction - " Given a buffer and a filename, find the nearest file by searching upwards " through the paths relative to the given buffer. function! ale#path#FindNearestFile(buffer, filename) abort diff --git a/autoload/ale/test.vim b/autoload/ale/test.vim index 8fc4fe43..bea10c53 100644 --- a/autoload/ale/test.vim +++ b/autoload/ale/test.vim @@ -50,5 +50,5 @@ function! ale#test#SetFilename(path) abort \ ? a:path \ : l:dir . '/' . a:path - silent! noautocmd execute 'file ' . fnameescape(ale#path#Winify(l:full_path)) + silent! noautocmd execute 'file ' . fnameescape(ale#path#Simplify(l:full_path)) endfunction -- cgit v1.2.3