diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-22 20:09:33 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-22 20:09:33 +0200 |
| commit | 528a9c0888f1db2449d30bf9c0c8b55fcd3c645c (patch) | |
| tree | d8891ac02c1e0d873c0caff3ebe29b4ea2a916af /go.sum | |
| parent | d629558394465b8956285edac324d67688ddd2c1 (diff) | |
Use \$EDITOR as default editor, falling back to vi (task 344)
defaultConfig() now reads the \$EDITOR environment variable for EditCmd
so users get their preferred editor automatically without touching the
config file. Falls back to "vi" (universally available) when \$EDITOR
is unset or empty. A JSON config value still takes precedence over \$EDITOR.
Updated tests to: unset \$EDITOR where "vi" fallback is asserted, add
TestLoad_editorEnvVar covering the three cases (\$EDITOR unset, \$EDITOR
set, JSON override), and remove all stale "hx" references from comments.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'go.sum')
0 files changed, 0 insertions, 0 deletions
