aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/client/search/cursor.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/command/client/search/cursor.rs')
-rw-r--r--src/command/client/search/cursor.rs4
1 files changed, 4 insertions, 0 deletions
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]