{"thread":{"id":"18642","subject":"Re: [PATCH] git-gui: fix deleting from the context menu with empty selection","startedAt":"2009-03-30T14:07:50Z","lastAt":"2009-03-30T14:07:50Z","messageCount":1,"participants":["Shawn O. Pearce"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"109901","messageId":"20090330140750.GU23521@spearce.org","threadId":"18642","inReplyTo":"200903291629.23736.markus.heidelberg@web.de","subject":"Re: [PATCH] git-gui: fix deleting from the context menu with empty selection","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2009-03-30T14:07:50Z","receivedAt":"2009-03-30T14:07:50Z","isPatch":true,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Markus Heidelberg <markus.heidelberg@web.de> wrote:\n> An \"Application Error\" was raised when trying to delete text from the\n> commit message field when no text was selected.\n\nThanks.\n\n> diff --git a/git-gui.sh b/git-gui.sh\n> index 2f1f305..b3aa732 100755\n> --- a/git-gui.sh\n> +++ b/git-gui.sh\n> @@ -2944,7 +2944,7 @@ $ctxm add command \\\n>  \t-command {tk_textPaste $ui_comm}\n>  $ctxm add command \\\n>  \t-label [mc Delete] \\\n> -\t-command {$ui_comm delete sel.first sel.last}\n> +\t-command {catch {$ui_comm delete sel.first sel.last}}\n>  $ctxm add separator\n>  $ctxm add command \\\n>  \t-label [mc \"Select All\"] \\\n\n-- \nShawn.\n"}]}