]> git.lizzy.rs Git - micro.git/commitdiff
Fix CanClose comment after API change
authoranatoly techtonik <techtonik@gmail.com>
Tue, 6 Sep 2016 19:51:13 +0000 (22:51 +0300)
committerGitHub <noreply@github.com>
Tue, 6 Sep 2016 19:51:13 +0000 (22:51 +0300)
Follow up to 966dac97f84b36

cmd/micro/view.go

index 8c1bdc52128f0580e5105ee68101f37d3bf638db..4efa16872121ac3d4d1fc29f666141474b808899 100644 (file)
@@ -182,7 +182,6 @@ func (v *View) ScrollDown(n int) {
 // CanClose returns whether or not the view can be closed
 // If there are unsaved changes, the user will be asked if the view can be closed
 // causing them to lose the unsaved changes
-// The message is what to print after saying "You have unsaved changes. "
 func (v *View) CanClose() bool {
        if v.Buf.IsModified {
                char, canceled := messenger.LetterPrompt("Save changes to "+v.Buf.Name+" before closing? (y,n,esc) ", 'y', 'n')