diff options
author | Pratyush Yadav <me@yadavpratyush.com> | 2019-09-14 02:19:38 +0530 |
---|---|---|
committer | Pratyush Yadav <me@yadavpratyush.com> | 2019-09-14 02:19:38 +0530 |
commit | 6c8ec8c30a134a24f90cccae87d33e71a61d4f5b (patch) | |
tree | c1cc4889c88b801d49a9cdf653b5ed8b1e32d97a | |
parent | acfa495519d7c12cfafe1c0e52fdac40f5e41032 (diff) | |
parent | da08d559b714016af532594083fe96120b36f58d (diff) |
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
-rwxr-xr-x | git-gui.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/git-gui.sh b/git-gui.sh index c7d9103f00..8ecb98b09b 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -3369,10 +3369,16 @@ ttext $ui_comm -background white -foreground black \ -relief sunken \ -width $repo_config(gui.commitmsgwidth) -height 9 -wrap none \ -font font_diff \ + -xscrollcommand {.vpane.lower.commarea.buffer.frame.sbx set} \ -yscrollcommand {.vpane.lower.commarea.buffer.frame.sby set} +${NS}::scrollbar .vpane.lower.commarea.buffer.frame.sbx \ + -orient horizontal \ + -command [list $ui_comm xview] ${NS}::scrollbar .vpane.lower.commarea.buffer.frame.sby \ + -orient vertical \ -command [list $ui_comm yview] +pack .vpane.lower.commarea.buffer.frame.sbx -side bottom -fill x pack .vpane.lower.commarea.buffer.frame.sby -side right -fill y pack $ui_comm -side left -fill y pack .vpane.lower.commarea.buffer.header -side top -fill x |