aboutsummaryrefslogtreecommitdiff
path: root/gitweb
diff options
context:
space:
mode:
authorFernando Ramos <greenfoo@u92.eu>2022-07-08 20:10:24 +0200
committerJunio C Hamano <gitster@pobox.com>2022-07-08 13:15:50 -0700
commitf3d7623a13566048c4a48b9db6bb09765588a735 (patch)
treedf83251e20914431171eab8f91bda1f4834c31f3 /gitweb
parent980145f7470e20826ca22d7343494712eda9c81d (diff)
downloadgit-f3d7623a13566048c4a48b9db6bb09765588a735.tar.xz
vimdiff: make layout engine more robust against user vim settings
'vim' has two configuration options ('splitbelow' and 'splitright') that change the way the 'split' command behaves. When they are set, the commands that the layout engine generates no longer work as expected. In order to fix this we can append special keyword 'leftabove' to each 'split' and 'vertical split' subcommand found inside the command string generated by the layout engine. This works because whatever comes after 'leftabove' will temporally ignore settings 'splitbelow' and 'splitright'. Reported-by: Matthew Klein <mklein994@gmail.com> Signed-off-by: Fernando Ramos <greenfoo@u92.eu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gitweb')
0 files changed, 0 insertions, 0 deletions