Wednesday, September 18, 2013

[Bug] :loadview restores readonly-state

Hey,

it seems that there is a bug with Vim-Views.

:mkview saves the current readonly-state of a file
:loadview restores this state

If the fileattribute changes before opening a file, the readonly-state differs from the real fileattribute.

You can reproduce it this way:
-file.txt is readonly
-open it in vim
-create a view with :mkview
-close the file
-change the fileattribute to readable
-open the file
-load the view with :loadview
-the file is marked as readonly but it is not!

Imho this is a bug :)

Best Regards
Sascha

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: