Permalink
Browse files

fix up :q and :q! - more to be done

  • Loading branch information...
1 parent 6a97cbc commit 89da2872a5d2fec002ae350dd1ac0d8f1f2cd2a7 @mcmenaminadrian committed May 25, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 hexedit/HexxedStatus.groovy
@@ -226,7 +226,14 @@ class HexxedStatus {
return
} else if (actionString[1] == 'q') {
actionString = actionString.minus(":q")
- quitFile(actionString)
+ if (!usingTempFile ||
+ (actionString.size() > 0 && actionString[0] == '!'))
+ quitFile(actionString)
+ else {
+ windowEdit.commandTextStatus.append(
+ "Unsaved edits - save before quitting\n")
+ cleanCommandLine()
+ }
return
}

0 comments on commit 89da287

Please sign in to comment.