Skip to content

Commit 0a560a2

Browse files
sanohiroclaude
andcommitted
fix: Query Replace確認モードでプロンプトが消える問題を修正
- 確認待ち中にEscapeやCtrlキーを押してもプロンプトが維持されるように - clearError()の条件にquery_replace_confirmモードの除外を追加 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b8f7dc0 commit 0a560a2

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.4.1] - 2026-01-04
9+
10+
### Fixed
11+
- Query Replace confirm mode: Prompt now persists when pressing unhandled keys (Escape, Ctrl, etc.)
12+
813
## [1.4.0] - 2026-01-04
914

1015
### Added

build.zig.zon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.{
22
.name = .ze,
3-
.version = "1.4.0",
3+
.version = "1.4.1",
44
.fingerprint = 0xa9d116540b6957d2,
55
.paths = .{""},
66
}

src/editor.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2024,8 +2024,8 @@ pub const Editor = struct {
20242024
while (true) {
20252025
if (try input.readKeyFromReader(input_reader)) |key| {
20262026
keys_processed += 1;
2027-
// ミニバッファモード中はプロンプトを維持
2028-
if (!self.isMinibufferMode()) {
2027+
// ミニバッファモード中、または確認待ちモード中はプロンプトを維持
2028+
if (!self.isMinibufferMode() and self.mode != .query_replace_confirm) {
20292029
self.getCurrentView().clearError();
20302030
}
20312031
self.processKey(key) catch |err| {

0 commit comments

Comments
 (0)