Преглед изворни кода

Add an additional check for nvim

Yegappan Lakshmanan пре 4 година
родитељ
комит
12732f49a4
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      plugin/mru.vim

+ 2 - 1
plugin/mru.vim

@@ -1014,7 +1014,8 @@ call s:MRU_LoadList()
 " Set the first entry in the MRU list as the alternate file
 " Credit to Martin Roa Villescas (https://github.com/mroavi) for the patch.
 " bufadd() is available starting from Vim 8.1.1610
-if g:MRU_Set_Alternate_File == 1 && (v:version >= 802 || has('patch-8.1.1610'))
+if g:MRU_Set_Alternate_File == 1 &&
+      \ (v:version >= 802 || has('patch-8.1.1610') || has('nvim'))
   if !empty(s:MRU_files)
     let first_mru_file = s:MRU_files[0]
     if filereadable(first_mru_file)