Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bug fix based on tests: Don't add duplicate directory separators in x…

…olox#misc#option#eval_tags()
  • Loading branch information...
commit 8a2773d0e93b3931aa767260e38244efaa434d96 1 parent 1aed880
@xolox authored
View
4 autoload/xolox/misc.vim
@@ -1,7 +1,7 @@
" The version of my miscellaneous scripts.
"
" Author: Peter Odding <peter@peterodding.com>
-" Last Change: June 1, 2013
+" Last Change: June 2, 2013
" URL: http://peterodding.com/code/vim/misc/
-let g:xolox#misc#version = '1.1'
+let g:xolox#misc#version = '1.1.1'
View
6 autoload/xolox/misc/option.vim
@@ -1,7 +1,7 @@
" Vim and plug-in option handling.
"
" Author: Peter Odding <peter@peterodding.com>
-" Last Change: May 19, 2013
+" Last Change: June 2, 2013
" URL: http://peterodding.com/code/vim/misc/
function! xolox#misc#option#get(name, ...) " {{{1
@@ -93,8 +93,8 @@ function! xolox#misc#option#eval_tags(value, ...) " {{{1
for pattern in xolox#misc#option#split_tags(a:value)
" Make buffer relative pathnames absolute.
if pattern =~ '^\./'
- let directory = xolox#misc#escape#substitute(expand('%:p:h'))
- let pattern = substitute(pattern, '^.\ze/', directory, '')
+ let suffix = matchstr(pattern, '^./\zs.*$')
+ let pattern = xolox#misc#path#merge(expand('%:p:h'), suffix)
endif
" Make working directory relative pathnames absolute.
if xolox#misc#path#is_relative(pattern)
View
2  doc/misc.txt
@@ -111,7 +111,7 @@ that I haven't published yet.
Start of generated documentation
The documentation of the 43 functions below was extracted from 13 Vim scripts
-on June 2, 2013 at 16:54.
+on June 2, 2013 at 16:56.
-------------------------------------------------------------------------------
*misc-handling-of-special-buffers*
Please sign in to comment.
Something went wrong with that request. Please try again.