Skip to content

Commit 6c8ec8c

Browse files
committed
Merge branch 'bw/commit-scrollbuffer'
Add a scrollbar at the bottom of the commit message buffer. * bw/commit-scrollbuffer: git-gui: add horizontal scrollbar to commit buffer
2 parents acfa495 + da08d55 commit 6c8ec8c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

git-gui.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3369,10 +3369,16 @@ ttext $ui_comm -background white -foreground black \
33693369
-relief sunken \
33703370
-width $repo_config(gui.commitmsgwidth) -height 9 -wrap none \
33713371
-font font_diff \
3372+
-xscrollcommand {.vpane.lower.commarea.buffer.frame.sbx set} \
33723373
-yscrollcommand {.vpane.lower.commarea.buffer.frame.sby set}
3374+
${NS}::scrollbar .vpane.lower.commarea.buffer.frame.sbx \
3375+
-orient horizontal \
3376+
-command [list $ui_comm xview]
33733377
${NS}::scrollbar .vpane.lower.commarea.buffer.frame.sby \
3378+
-orient vertical \
33743379
-command [list $ui_comm yview]
33753380
3381+
pack .vpane.lower.commarea.buffer.frame.sbx -side bottom -fill x
33763382
pack .vpane.lower.commarea.buffer.frame.sby -side right -fill y
33773383
pack $ui_comm -side left -fill y
33783384
pack .vpane.lower.commarea.buffer.header -side top -fill x

0 commit comments

Comments
 (0)