Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep splitted view when coming back from a maximized view #1344

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Test that split view is preserved when coming back from maximized screen
QDoussot committed Jul 1, 2024

Verified

This commit was signed with the committer’s verified signature.
BoBoBaSs84 Robert Peter Meyer
commit 8a8aa385ecb14fcdd502e8285d03257e8e780fb4
27 changes: 27 additions & 0 deletions test/main/keep-split-view-test
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

#!/bin/sh
#
# Test display and options specific to the main view.

. libtest.sh
. libgit.sh

export LINES=16

tigrc <<EOF
set vertical-split = no
EOF

steps '
<Enter>
:save-display main-and-diff.screen
:view-help
:view-close
:save-display main-and-diff-back.screen
'

git_clone 'repo-one'

test_tig

assert_equals 'main-and-diff.screen' < main-and-diff-back.screen