summaryrefslogtreecommitdiff
path: root/helix-term/src/commands.rs
diff options
context:
space:
mode:
authorCole Helbling2021-11-10 01:06:40 +0000
committerBlaž Hrastnik2022-02-17 05:02:42 +0000
commita1207fd7683c2e038df923704bb5790c6cdaefea (patch)
treeacb4c8c72bc9d7083765c51fe0af5102e284f7f9 /helix-term/src/commands.rs
parentd11b6521399f41cb4c0b75ebaa5770972f550ebb (diff)
helix-term/commands: display buffer id in picker
Diffstat (limited to 'helix-term/src/commands.rs')
-rw-r--r--helix-term/src/commands.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index fa1fa4e4..e2c4a9d9 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -3385,7 +3385,7 @@ fn buffer_picker(cx: &mut Context) {
.map(helix_core::path::get_relative_path);
let path = match path.as_deref().and_then(Path::to_str) {
Some(path) => path,
- None => return Cow::Borrowed(SCRATCH_BUFFER_NAME),
+ None => SCRATCH_BUFFER_NAME,
};
let mut flags = Vec::new();
@@ -3401,7 +3401,7 @@ fn buffer_picker(cx: &mut Context) {
} else {
format!(" ({})", flags.join(""))
};
- Cow::Owned(format!("{}{}", path, flag))
+ Cow::Owned(format!("{} {}{}", self.id, path, flag))
}
}