Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unnecessary quit check on untitled files #855

Merged
merged 1 commit into from
Oct 7, 2016
Merged

Unnecessary quit check on untitled files #855

merged 1 commit into from
Oct 7, 2016

Conversation

xconverge
Copy link
Member

Is there a reason this was here? This PR is more of a question, but could be merged if it makes sense...

Shouldnt :q on a new untitled file work? On MacVim if I open it and immediately do :q it quits

This is also causing #846

@xconverge
Copy link
Member Author

xconverge commented Oct 7, 2016

Shouldn't the next check here be checking if the file isDirty? That doesn't seem to be working when I make an untitled file and type some stuff in it and then do :q

@Platzer
Copy link
Contributor

Platzer commented Oct 7, 2016

Thats there because VIM also do nothing when you try to :quit a unnamed file.
grafik

But i think the Default Settings File is isUntitled = true because i don't think it is an actual file?

@xconverge
Copy link
Member Author

If I open vim, and have an empty file, and do :q, it will quit...

@Platzer
Copy link
Contributor

Platzer commented Oct 7, 2016

Yes you are right, it is a unnecessary check.

@rebornix
Copy link
Member

rebornix commented Oct 7, 2016

LGTM.

@xconverge
Copy link
Member Author

That being said, the isDirty check that comes after this seems to be funky..I will look into it

@johnfn
Copy link
Member

johnfn commented Oct 7, 2016

@xconverge I take it that's a separate issue and this can be merged, correct?

@xconverge
Copy link
Member Author

Yep!

@johnfn johnfn merged commit 99d2211 into VSCodeVim:master Oct 7, 2016
@johnfn
Copy link
Member

johnfn commented Oct 7, 2016

Awesome, thanks @xconverge!

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants