* Re: [PATCH] git-gui: fix deleting from the context menu with empty selection
[not found] <200903291629.23736.markus.heidelberg@web.de>
@ 2009-03-30 14:07 ` Shawn O. Pearce
0 siblings, 0 replies; only message in thread
From: Shawn O. Pearce @ 2009-03-30 14:07 UTC (permalink / raw)
To: Markus Heidelberg; +Cc: git
Markus Heidelberg <markus.heidelberg@web.de> wrote:
> An "Application Error" was raised when trying to delete text from the
> commit message field when no text was selected.
Thanks.
> diff --git a/git-gui.sh b/git-gui.sh
> index 2f1f305..b3aa732 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"] \
--
Shawn.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-03-30 14:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200903291629.23736.markus.heidelberg@web.de>
2009-03-30 14:07 ` [PATCH] git-gui: fix deleting from the context menu with empty selection Shawn O. Pearce
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).