File marked as modified after SudoWrite #12

Closed
blueyed opened this Issue Jan 16, 2012 · 2 comments

Projects

None yet

2 participants

@blueyed
blueyed commented Jan 16, 2012

When creating a new file using :SudoWrite $filename it is considered to be modified afterwards.

  1. vim
  2. ifoo<Esc>
  3. :SudoWrite /tmp/foo

While /tmp/foo is written correctly, Vim considers it to be modified (see :set modified?).

I have tested it using revision 69e6ccd.

@chrisbra
Owner

On Mon, January 16, 2012 2:15 pm, Daniel Hahler wrote:

When creating a new file using :SudoWrite $filename it is considered to
be modified afterwards.

  1. vim
  2. ifoo<Esc>
  3. :SudoWrite /tmp/foo

While /tmp/foo is written correctly, Vim considers it to be modified
(see :set modified?).

I have tested it using revision 69e6ccd.

You are a good tester ;)

Thanks for the report. I make a patch. (I already have it locally, just
need to upload it).

regards,
Christian

@chrisbra
Owner

Try revision de00cdb

@chrisbra chrisbra closed this Apr 21, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment