Skip to content

Commit bf516ec

Browse files
marcowsspearce
authored andcommitted
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 <[email protected]> Signed-off-by: Shawn O. Pearce <[email protected]>
1 parent e27430e commit bf516ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-gui.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2944,7 +2944,7 @@ $ctxm add command \
29442944
-command {tk_textPaste $ui_comm}
29452945
$ctxm add command \
29462946
-label [mc Delete] \
2947-
-command {$ui_comm delete sel.first sel.last}
2947+
-command {catch {$ui_comm delete sel.first sel.last}}
29482948
$ctxm add separator
29492949
$ctxm add command \
29502950
-label [mc "Select All"] \

0 commit comments

Comments
 (0)