Fix CanClose comment after API change

Follow up to 966dac97f8
This commit is contained in:
anatoly techtonik
2016-09-06 22:51:13 +03:00
committed by GitHub
parent c0282c4a3c
commit 1f457f9d9e

View 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')