Permalink
Browse files

Fix use of relative filenames (closes #29)

  • Loading branch information...
tomtom committed Nov 30, 2012
1 parent 9ff0c55 commit e1671f85243fd8f20ff0c61e548679dff5311e38
Showing with 6 additions and 3 deletions.
  1. +6 −3 plugin/tmru.vim
View
@@ -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")
@@ -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 = []
@@ -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

0 comments on commit e1671f8

Please sign in to comment.