On Wednesday, June 24, 2015 at 8:24:51 AM UTC-5, Olaf wrote:
> 
> No documentation in the patch, because in my understanding the current
> docs seem to imply this behavior:
> 
>     The ":diffoff" command resets the relevant options to the values
>     they had when using |:diffsplit|, |:diffpatch| , |:diffthis|. or
>     starting Vim in diff mode.  Otherwise they are set to their default
>     value:
> 
> 
> With the patch, ':diffoff' will only restore the defaults if the window
> has never been in a diff.
> 

I agree that seems like the intent of the current documentation.

> Question to the list: should ':diffoff' *ever* restore default settings?
> 
> Maybe it is better to only restore settings that have been saved before,
> when entering diff mode at some point, if that has happened at all.
> 
> Because if the window was never switched to diff mode, why should
> ':diffoff' restore settings that have never been changed by diff mode,
> and then to some arbitrary defaults?  Better leave these settings
> untouched in that case?
> 
> 

I agree; I don't see why :diffoff should affect anything at all in windows that 
have never been in diff mode to begin with. I would support such a change.

-- 
-- 
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui