Skip to content

Commit

Permalink
Mark the MRU buffer as modifiable always
Browse files Browse the repository at this point in the history
  • Loading branch information
yegappan committed Jan 22, 2014
1 parent dd21c38 commit 3a60c91
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugin/mru.vim
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -743,6 +741,8 @@ function! s:MRU_Open_Window(...)
endif
endif

setlocal modifiable

" Mark the buffer as scratch
setlocal buftype=nofile
setlocal bufhidden=delete
Expand Down

0 comments on commit 3a60c91

Please sign in to comment.