Skip to content

Commit

Permalink
Bug fix based on tests: Don't add duplicate directory separators in x…
Browse files Browse the repository at this point in the history
…olox#misc#option#eval_tags()
  • Loading branch information
xolox committed Jun 2, 2013
1 parent 1aed880 commit 8a2773d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions 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'
6 changes: 3 additions & 3 deletions 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
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion doc/misc.txt
Expand Up @@ -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*
Expand Down

0 comments on commit 8a2773d

Please sign in to comment.