Skip to content

Commit

Permalink
git-gui: fix deleting from the context menu with empty selection
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Markus Heidelberg authored and Shawn O. Pearce committed Mar 30, 2009
1 parent e27430e commit bf516ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"] \
Expand Down

0 comments on commit bf516ec

Please sign in to comment.