aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 37ddb5e..c09eb4d 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -29,9 +29,9 @@ struct Point {
/// let value = strip_key("e: email@example.com");
/// assert_eq!(value, "email@example.com");
/// ```
-fn strip_key(line: &str) -> &str {
+fn strip_key(line: &str) -> String {
let strings: Vec<&str> = line.split(": ").collect();
- strings[1]
+ strings[1..].join(": ")
}
fn move_selection(term: &mut Terminal, selection: &mut Point, style: Cell, amount: isize) {