Skip to content

Commit

Permalink
Use cwd as base directory for relative filenames (fixes #30)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtom committed Jan 14, 2013
1 parent ce06e06 commit 60e08b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugin/tmru.vim
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
" @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
" @Created: 2007-04-13.
" @Last Change: 2012-11-30.
" @Revision: 854
" @Revision: 856
" GetLatestVimScripts: 1864 1 tmru.vim

if &cp || exists("loaded_tmru")
Expand Down Expand Up @@ -169,8 +169,8 @@ function! TmruObj(...) "{{{3
function! tmruobj.SetBase(world) dict
let a:world.base = self.GetFilenames()
if g:tmru#display_relative_filename
let basedir = expand('%:p:h')
call map(a:world.base, 'tlib#file#Relative(v:val, basedir)')
let basedir = getcwd()
let a:world.base = map(a:world.base, 'tlib#file#Relative(v:val, basedir)')
endif
call s:SetFilenameIndicators(a:world, self.mru)
endf
Expand Down

0 comments on commit 60e08b9

Please sign in to comment.