fix: Make diff wrapping toggle always available in command_list and correct a type error (resolves #10682) (#10683)

This commit is contained in:
Ariane Emory
2026-01-26 09:01:23 -05:00
committed by GitHub
parent 6b83b172ae
commit 0edd304f42
2 changed files with 11 additions and 13 deletions

View File

@@ -570,6 +570,16 @@ function App() {
dialog.clear()
},
},
{
title: kv.get("diff_wrap_mode", "word") === "word" ? "Disable diff wrapping" : "Enable diff wrapping",
value: "app.toggle.diffwrap",
category: "System",
onSelect: (dialog) => {
const current = kv.get("diff_wrap_mode", "word")
kv.set("diff_wrap_mode", current === "word" ? "none" : "word")
dialog.clear()
},
},
])
createEffect(() => {