Skip to content

conflict support 2 - 3-pane ui, result :write buffer#3

Merged
polyphilz merged 2 commits into
mainfrom
polyphilz/3-pane-2
Apr 26, 2026
Merged

conflict support 2 - 3-pane ui, result :write buffer#3
polyphilz merged 2 commits into
mainfrom
polyphilz/3-pane-2

Conversation

@polyphilz
Copy link
Copy Markdown
Owner

No description provided.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6d047b406e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread lua/glance/merge/init.lua

state.write_in_progress = true
local ok, write_err = xpcall(function()
write_text(root .. '/' .. file.path, prepared.persisted_text)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Respect buffer write options when saving merge result

Persisting the merge result through write_text(...) bypasses Neovim’s normal file write path, so buffer-local write semantics are ignored. In conflict files with non-default settings (for example fileformat=dos, BOM, or encoding-related write behavior), :write from this pane rewrites raw prepared.persisted_text bytes instead of honoring those options, which can silently change line endings/metadata and create unrelated diffs or break downstream tooling expecting the original file format.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved in polyphilz/3-pane-7

@polyphilz polyphilz force-pushed the polyphilz/3-pane-2 branch from 6d047b4 to c0b5aaf Compare April 26, 2026 19:10
@polyphilz polyphilz changed the base branch from polyphilz/3-pane-1 to main April 26, 2026 19:10
@polyphilz polyphilz changed the title 3-pane ui, result :write buffer conflict support 2 - 3-pane ui, result :write buffer Apr 26, 2026
@polyphilz polyphilz merged commit 69b28f7 into main Apr 26, 2026
3 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.

1 participant