techlivezheng/vim-plugin-minibufexpl — pull request #8 by whitelynx (2013-04-04 17:26:47+00:00)
Title: Fix for errors whenever resizing the minibufexpl window.

With the current `develop` branch HEAD, whenever `ResizeWindow` gets called (whenever I switch buffers), I get the following error from Vim:

```
Error detected while processing function 39_BufEnterHandler..39_AutoUpdate..39_StartExplorer..39_DisplayBuffers..39_ResizeWindow:
line 36:
E21: Cannot make changes, 'modifiable' is off
```

This seems to be because of the `normal gq}` reformatting command in `ResizeWindow`, in the branch for when it's set to use a horizontal split (`g:miniBufExplVSplit == 0`), and tab wrapping is enabled. (`g:miniBufExplTabWrap != 0`)

This patch corrects this by adding `setlocal modifiable`/`setlocal nomodifiable` around that section of the code.