Merge branch 'maint'
authorShawn O. Pearce <spearce@spearce.org>
Mon, 30 Mar 2009 14:09:28 +0000 (07:09 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 30 Mar 2009 14:09:28 +0000 (07:09 -0700)
* maint:
git-gui: fix deleting from the context menu with empty selection

git-gui.sh
index 2f1f305019a1af1aec5f9885468188c9daa7a8ef..b3aa7325f037b8a4c918859f639e7aa210a1f107 100755 (executable)
@@ -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"] \