Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Version 3.5

First file in the MRU list is not added to the MRU menu. Fix a off-by-one error.
Used a wrong version of the plugin in the previous upload of 3.5. Fixed the problem.
  • Loading branch information...
commit 8c8843747a35e104fdc33d5ece5566e1ff0b2028 1 parent c701834
@yegappan yegappan authored committed
Showing with 4 additions and 4 deletions.
  1. +4 −4 plugin/mru.vim
View
8 plugin/mru.vim
@@ -1,8 +1,8 @@
" File: mru.vim
" Author: Yegappan Lakshmanan (yegappan AT yahoo DOT com)
-" Version: 3.4
-" Last Modified: April 13, 2012
-" Copyright: Copyright (C) 2003-2012 Yegappan Lakshmanan
+" Version: 3.5
+" Last Modified: May 8, 2013
+" Copyright: Copyright (C) 2003-2013 Yegappan Lakshmanan
" Permission is hereby granted to use and distribute this code,
" with or without modifications, provided that this copyright
" notice is copied with it. Like anything else that's free,
@@ -919,7 +919,7 @@ function! s:MRU_Refresh_Menu()
let entry_cnt = len(s:MRU_files)
if entry_cnt > g:MRU_Max_Menu_Entries
" Show only MRU_Max_Menu_Entries file names in the menu
- let mru_list = s:MRU_files[1 : g:MRU_Max_Menu_Entries]
+ let mru_list = s:MRU_files[0 : g:MRU_Max_Menu_Entries - 1]
let entry_cnt = g:MRU_Max_Menu_Entries
else
let mru_list = s:MRU_files
Please sign in to comment.
Something went wrong with that request. Please try again.