aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2009-03-30 07:09:28 -0700
committerShawn O. Pearce <spearce@spearce.org>2009-03-30 07:09:28 -0700
commit122ee5442039fd006911cd964b149c776476ee8d (patch)
tree08cd9ebcb670c6d808458d6932aa60ad2ad8f464
parent966d0778db2e3b11f5fffa2312770ef534263058 (diff)
parentbf516ecaac4d7fca840f55e2534066227aa639be (diff)
downloadgit-122ee5442039fd006911cd964b149c776476ee8d.tar.gz
git-122ee5442039fd006911cd964b149c776476ee8d.tar.xz
Merge branch 'maint'
* maint: git-gui: fix deleting from the context menu with empty selection
-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"] \