Skip to content

Commit 5b0ec45

Browse files
authored
Merge pull request #31 from AuroBreeze/dev
Dev
2 parents 6c3ff1d + 7122162 commit 5b0ec45

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

Release.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
# Quick-c Release Notes
22

3+
## v1.5.13 (2025-11-06) Hotfix
4+
5+
### 修复
6+
- 构建交互弹窗(Telescope)在首次出现后用 Esc/q 关闭时,任务未结束导致队列阻塞的问题:
7+
- 已在选择器中为 `<Esc>`/`q`/`<C-c>` 映射“取消并完成任务”(finalize),确保后续 `cqb`/`cqR` 可正常弹窗或执行。
8+
- 影响表现:第一次打开 `cqb``cqR` 能弹窗,另一条命令无反应;或只有第一次能弹窗,后续均无反应。
9+
10+
### 影响范围
11+
- 版本:v1.5.12
12+
- 条件:`compile.user_cmd.enabled = true``compile.user_cmd.telescope.popup = true`,并在弹窗中用 Esc/q 关闭。
13+
14+
### 根因
15+
- 弹窗关闭未触发回调,任务队列保持“进行中”,后续任务不再调度。
16+
17+
### 验证建议
18+
1) `cqb` 弹窗后按 Esc 取消,任务不应卡住;随后 `cqR` 正常弹窗/执行。
19+
2) `cqR` 选择 `[Custom args…]` 输入参数后能正常构建并自动运行;再次 `cqb` 仍可弹窗。
20+
3) 未安装 Telescope 时回退到 `vim.ui.select/input` 亦不会阻塞。
21+
22+
### 兼容性
23+
- 无破坏性变更;无需迁移或修改配置。
24+
325
## v1.5.12 (2025-11-06)
426

527
### 改进

lua/quick-c/build.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,8 +539,16 @@ local function choose_user_compile_cmd_async(config, is_win, ft, sources, exe, b
539539
actions.close(pbuf)
540540
finalize(entry and entry.value or nil)
541541
end
542+
local function cancel(pbuf)
543+
actions.close(pbuf)
544+
finalize(nil)
545+
end
542546
map('i', '<CR>', choose)
543547
map('n', '<CR>', choose)
548+
map('i', '<Esc>', cancel)
549+
map('n', '<Esc>', cancel)
550+
map('n', 'q', cancel)
551+
map('i', '<C-c>', cancel)
544552
return true
545553
end,
546554
})

0 commit comments

Comments
 (0)