Commit bd281b9
fix(actions): pass nil to can_replace_buf instead of 0
In Lua, 0 is truthy so `buf = buf or nvim_get_current_buf()` never
falls back, and `getbufinfo(0)` returns an empty table where `changed`
is nil. Since `nil ~= 0` is true, `buffer_is_dirty` always reports
dirty, causing `can_replace_buf` to always return false when
`hidden=false` — breaking file_edit for every selection.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 26dd5e3 commit bd281b9
2 files changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
196 | 195 | | |
197 | 196 | | |
198 | 197 | | |
| |||
239 | 238 | | |
240 | 239 | | |
241 | 240 | | |
242 | | - | |
| 241 | + | |
243 | 242 | | |
244 | 243 | | |
245 | 244 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1116 | 1116 | | |
1117 | 1117 | | |
1118 | 1118 | | |
1119 | | - | |
| 1119 | + | |
1120 | 1120 | | |
1121 | 1121 | | |
1122 | 1122 | | |
| |||
0 commit comments