aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Heidelberg <markus.heidelberg@web.de>2009-03-29 15:29:23 +0100
committerShawn O. Pearce <spearce@spearce.org>2009-03-30 07:06:37 -0700
commitbf516ecaac4d7fca840f55e2534066227aa639be (patch)
treee6f277538204f004310946bafe02bf9c36e12d99
parente27430e777edeb777cdd02a777e1e3a4608a0b41 (diff)
downloadgit-bf516ecaac4d7fca840f55e2534066227aa639be.tar.gz
git-bf516ecaac4d7fca840f55e2534066227aa639be.tar.xz
git-gui: fix deleting from the context menu with empty selection
An "Application Error" was raised when trying to delete text from the commit message field when no text was selected. Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
-rwxr-xr-xgit-gui.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-gui.sh b/git-gui.sh
index 2f1f30501..b3aa7325f 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -2944,7 +2944,7 @@ $ctxm add command \
-command {tk_textPaste $ui_comm}
$ctxm add command \
-label [mc Delete] \
- -command {$ui_comm delete sel.first sel.last}
+ -command {catch {$ui_comm delete sel.first sel.last}}
$ctxm add separator
$ctxm add command \
-label [mc "Select All"] \