chrisbra / NrrwRgn

A Narrow Region Plugin for vim (like Emacs Narrow Region)
http://www.vim.org/scripts/script.php?script_id=3075
675 stars 25 forks source link

Can't write back from :NUD conflict view #69

Open elzibubble opened 5 years ago

elzibubble commented 5 years ago

Thanks for fixing #68 ! When I use :NUD on a conflict, there's a message:

NarrowRegion: Buffer is protected, won't be able to write the changes back!

The buffer was not protected (unmodifiable) before I used :NUD but it is after. The buffer is still unmodifiable after both NrrwRgn windows are closed. I'd prefer the buffer not to be marked unmodifiable and for the message not to show, so I can fix the conflict.

Relatedly there doesn't seem to be a way to write back. I'd be happy with whichever buffer I save last (even if I save one then the other) replacing the region.