From 3bff36ab90aba7de8bb5bff7dbb8230d81cdf582 Mon Sep 17 00:00:00 2001 From: wongjiahau Date: Wed, 1 May 2024 13:42:31 -0700 Subject: Add file explorer and tree helper ref: https://github.com/helix-editor/helix/issues/200 ref: https://github.com/helix-editor/helix/pull/2377 ref: https://github.com/helix-editor/helix/pull/5566 ref: https://github.com/helix-editor/helix/pull/5768 Co-authored-by: cossonleo Co-authored-by: JJ Co-authored-by: Quan Tong --- helix-term/src/ui/prompt.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'helix-term/src/ui/prompt.rs') diff --git a/helix-term/src/ui/prompt.rs b/helix-term/src/ui/prompt.rs index a6ee7f05..78e97c8c 100644 --- a/helix-term/src/ui/prompt.rs +++ b/helix-term/src/ui/prompt.rs @@ -108,6 +108,10 @@ impl Prompt { self } + pub fn prompt(&self) -> &str { + self.prompt.as_ref() + } + pub fn line(&self) -> &String { &self.line } -- cgit v1.2.3-70-g09d2