Skip to content

Conversation

@esmuellert
Copy link
Owner

Summary

  • Fix inconsistent diff layout for users without set splitright in their config
  • Replace implicit vsplit with explicit rightbelow vsplit to guarantee consistent behavior

Problem

The previous code used vsplit which respects the user's splitright option:

  • Users with set splitright (like the maintainer) got correct layout
  • Users with default set nosplitright got inverted layout (modified on left, original on right)

Solution

Use explicit positioning commands that ignore splitright:

  • rightbelow vsplit - always puts new window on RIGHT
  • leftabove vsplit - always puts new window on LEFT

Testing

  • All 194 tests pass
  • Verified with --clean config (no user settings)

Credit

Issue reported by daliusd_ on Reddit

Replace 'vsplit' with 'rightbelow vsplit' to ensure consistent window
layout regardless of user's splitright option. This fixes an issue where
users without 'set splitright' would get inverted diff layouts.

Fixes issue reported by daliusd_ on Reddit.
@esmuellert esmuellert enabled auto-merge January 11, 2026 08:44
@esmuellert esmuellert merged commit f7f081a into main Jan 11, 2026
13 checks passed
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.

2 participants