Skip to content

Respect :horizontal modifier in :Git difftool -y#2460

Open
niklaas wants to merge 1 commit intotpope:masterfrom
niklaas:fix-horizontal-difftool
Open

Respect :horizontal modifier in :Git difftool -y#2460
niklaas wants to merge 1 commit intotpope:masterfrom
niklaas:fix-horizontal-difftool

Conversation

@niklaas
Copy link

@niklaas niklaas commented Mar 17, 2026

The no-prompt code path in s:ToolStream() hardcoded 'vertical' when
calling Gdiffsplit!. This meant :horizontal G difftool -y was ignored.

Derive the split direction from a:mods so that :horizontal produces
horizontal diffs while preserving vertical as the default.

Fixes #2435

The no-prompt code path in s:ToolStream() hardcoded 'vertical' when
calling Gdiffsplit!. This meant :horizontal G difftool -y was ignored.

Derive the split direction from a:mods so that :horizontal produces
horizontal diffs while preserving vertical as the default.

Fixes tpope#2435
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

horizontal :Git difftool -y

1 participant