Skip to content

Commit

Permalink
Fix use of relative filenames (closes #29)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtom committed Nov 30, 2012
1 parent 9ff0c55 commit e1671f8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions plugin/tmru.vim
Expand Up @@ -3,8 +3,8 @@
" @Website: http://www.vim.org/account/profile.php?user_id=4037
" @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
" @Created: 2007-04-13.
" @Last Change: 2012-11-29.
" @Revision: 821
" @Last Change: 2012-11-30.
" @Revision: 822
" GetLatestVimScripts: 1864 1 tmru.vim

if &cp || exists("loaded_tmru")
Expand Down Expand Up @@ -223,6 +223,7 @@ endf

function! s:SetFilenameIndicators(world, mru) "{{{3
let a:world.filename_indicators = {}
let idx = 0
for item in a:mru
let [filename, props] = item
let indicators = []
Expand All @@ -234,8 +235,10 @@ function! s:SetFilenameIndicators(world, mru) "{{{3
call add(indicators, '-'. session)
endif
if !empty(indicators)
let a:world.filename_indicators[filename] = join(indicators, '')
let fname = g:tmru#display_relative_filename ? a:world.base[idx] : filename
let a:world.filename_indicators[fname] = join(indicators, '')
endif
let idx += 1
endfor
endf

Expand Down

0 comments on commit e1671f8

Please sign in to comment.