commit b1db6f7dfea01adb8a69de2d4c4c72bfc7eb60b1
parent 76d4abac50c40f29efca246bca20730aaae9b7e8
Author: Hamish Downer <dmishd@gmail.com>
Date: Tue, 22 Feb 2011 17:22:14 +0000
Shorten confirm discard messages
The messages to confirm discard no longer include the name of the
file being edited. It is still visible on screen, so it is a bit
redundant, and with the file name, the question is too long to fit
on an 80 character terminal.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/sup/modes/edit-message-async-mode.rb b/lib/sup/modes/edit-message-async-mode.rb
@@ -29,7 +29,7 @@ class EditMessageAsyncMode < LineCursorMode
def killable?
if file_being_edited?
- if !BufferManager.ask_yes_or_no("It appears that #{@file_path} is still being edited. Are you sure?")
+ if !BufferManager.ask_yes_or_no("It appears the file is still being edited. Are you sure?")
return false
end
end
@@ -46,7 +46,7 @@ protected
def edit_finished
if file_being_edited?
- if !BufferManager.ask_yes_or_no("It appears that #{@file_path} is still being edited. Are you sure?")
+ if !BufferManager.ask_yes_or_no("It appears the file is still being edited. Are you sure?")
return false
end
end