Procházet zdrojové kódy

Mark the MRU buffer as modifiable always

Yegappan Lakshmanan před 12 roky
rodič
revize
3a60c9157a
1 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. 4 4
      plugin/mru.vim

+ 4 - 4
plugin/mru.vim

@@ -1,8 +1,8 @@
 " File: mru.vim
 " Author: Yegappan Lakshmanan (yegappan AT yahoo DOT com)
 " Version: 3.8
-" Last Modified: December 24, 2013
-" Copyright: Copyright (C) 2003-2013 Yegappan Lakshmanan
+" Last Modified: January 22, 2014
+" Copyright: Copyright (C) 2003-2014 Yegappan Lakshmanan
 " License:   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,
@@ -704,8 +704,6 @@ function! s:MRU_Open_Window(...)
             exe winnum . 'wincmd w'
         endif
 
-        setlocal modifiable
-
         " Delete the contents of the buffer to the black-hole register
         silent! %delete _
     else
@@ -743,6 +741,8 @@ function! s:MRU_Open_Window(...)
         endif
     endif
 
+    setlocal modifiable
+
     " Mark the buffer as scratch
     setlocal buftype=nofile
     setlocal bufhidden=delete