Skip to content

Commit 987b16b

Browse files
committed
chore: remove ProcessorGuide
1 parent f35815a commit 987b16b

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

src/processor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ impl Processor {
8585
// TODO: error handling
8686
let _ = shared_renderer.lock().await.update_and_draw([
8787
(
88-
PaneIndex::ProcessorGuide,
88+
PaneIndex::Guide,
8989
maybe_guide.unwrap_or(EMPTY_PANE.to_owned()),
9090
),
9191
(

src/prompt.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ pub async fn run<T: ViewProvider + SearchProvider>(
111111
EMPTY_PANE.to_owned(),
112112
EMPTY_PANE.to_owned(),
113113
EMPTY_PANE.to_owned(),
114-
EMPTY_PANE.to_owned(),
115114
],
116115
no_hint,
117116
)?));

src/render.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ use promkit_core::{crossterm::cursor, pane::Pane, terminal::Terminal};
77
pub enum PaneIndex {
88
Editor = 0,
99
Guide = 1,
10-
ProcessorGuide = 2,
11-
Search = 3,
12-
Processor = 4,
10+
Search = 2,
11+
Processor = 3,
1312
}
1413

1514
pub static EMPTY_PANE: LazyLock<Pane> = LazyLock::new(|| Pane::new(vec![], 0));
@@ -39,7 +38,7 @@ impl Renderer {
3938
iter: I,
4039
) -> anyhow::Result<()> {
4140
for (index, pane) in iter {
42-
if self.no_hint && (index == PaneIndex::Guide || index == PaneIndex::ProcessorGuide) {
41+
if self.no_hint && index == PaneIndex::Guide {
4342
continue;
4443
}
4544
self.panes[index as usize] = pane;

0 commit comments

Comments
 (0)