Skip to content

Commit 593336d

Browse files
committed
Keep the active false and Some(out)
1 parent 7b2008f commit 593336d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

codex-rs/tui/src/bottom_pane/paste_burst.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,12 @@ impl PasteBurst {
201201
if !self.is_active() {
202202
return None;
203203
}
204+
self.active = false;
204205
let mut out = std::mem::take(&mut self.buffer);
205-
if let Some((ch, _)) = self.pending_first_char.take() {
206+
if let Some((ch, _at)) = self.pending_first_char.take() {
206207
out.push(ch);
207208
}
208-
self.clear_after_explicit_paste();
209-
if out.is_empty() { None } else { Some(out) }
209+
Some(out)
210210
}
211211

212212
/// Clear only the timing window and any pending first-char.

0 commit comments

Comments
 (0)