mirror of
https://github.com/git/git.git
synced 2024-11-18 03:03:55 +01:00
git-gui: Clip the commit summaries in the blame history menu
Some commit lines can get really long when users enter a lot of text without linewrapping (for example). Rather than letting the menu get out of control in terms of width we clip the summary to the first 50+ characters. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
parent
08dda17e00
commit
b55a243dfc
@ -390,6 +390,9 @@ method _history_menu {} {
|
||||
}
|
||||
if {![catch {set summary $header($c,summary)}]} {
|
||||
append t " $summary"
|
||||
if {[string length $t] > 70} {
|
||||
set t [string range $t 0 66]...
|
||||
}
|
||||
}
|
||||
|
||||
$m add command -label $t -command [cb _goback $i $c $f]
|
||||
|
Loading…
Reference in New Issue
Block a user