From db2a00f45623d284f17dfe8c0f9eca1a401c25a6 Mon Sep 17 00:00:00 2001 From: Conrad Ludgate Date: Mon, 12 Sep 2022 20:39:41 +0100 Subject: custom history list (#524) * use custom list impl * fmt * segment * clean up * fix offsets * fix scroll back space * small touch ups --- src/command/client/search/cursor.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/command/client/search/cursor.rs') diff --git a/src/command/client/search/cursor.rs b/src/command/client/search/cursor.rs index 1d0e6b8e..da2be45e 100644 --- a/src/command/client/search/cursor.rs +++ b/src/command/client/search/cursor.rs @@ -14,6 +14,10 @@ impl Cursor { self.source.as_str() } + pub fn into_inner(self) -> String { + self.source + } + /// Returns the string before the cursor pub fn substring(&self) -> &str { &self.source[..self.index] -- cgit v1.3.1