File marked as modified after SudoWrite #12

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

Comments

Projects
None yet
2 participants
@blueyed
Contributor

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

This comment has been minimized.

Show comment
Hide comment
@chrisbra

chrisbra Jan 16, 2012

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

Owner

chrisbra commented Jan 16, 2012

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

This comment has been minimized.

Show comment
Hide comment
@chrisbra

chrisbra Jan 16, 2012

Owner

Try revision de00cdb

Owner

chrisbra commented Jan 16, 2012

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