Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lua/claudecode/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,12 @@ function M.apply(user_config)
-- Backward compatibility: map legacy diff options to new fields if provided
if config.diff_opts then
local d = config.diff_opts
-- Map vertical_split -> layout (only if layout not explicitly set)
if d.layout == nil and type(d.vertical_split) == "boolean" then
-- Map vertical_split -> layout (legacy option takes precedence)
if type(d.vertical_split) == "boolean" then
d.layout = d.vertical_split and "vertical" or "horizontal"
end
-- Map open_in_current_tab -> open_in_new_tab (invert; only if not explicitly set)
if d.open_in_new_tab == nil and type(d.open_in_current_tab) == "boolean" then
-- Map open_in_current_tab -> open_in_new_tab (legacy option takes precedence)
if type(d.open_in_current_tab) == "boolean" then
d.open_in_new_tab = not d.open_in_current_tab
end
end
Expand Down