summaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
authorJan Hrastnik2021-03-16 12:55:12 +0000
committerBlaž Hrastnik2021-03-16 14:03:29 +0000
commiteadad13efabb6a838a366b27002e09e1d2580750 (patch)
tree6dc04d20559c26e82af457cd830ee5386839b346 /helix-term/src
parent4e461bea2f4cc19d0d25a62a4f278420c074b6e9 (diff)
preparing for gd merge
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/commands.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 20f51ef4..45e8cd01 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -857,8 +857,6 @@ fn goto(cx: &mut Context, locations: Vec<lsp::Location>) {
doc.mode = Mode::Normal;
- log::info!("{:?}", locations);
-
match locations.as_slice() {
[location] => {
cx.editor
@@ -874,7 +872,7 @@ fn goto(cx: &mut Context, locations: Vec<lsp::Location>) {
locations,
|item| {
let file = item.uri.as_str();
- let line = item.range.start.line.to_string();
+ let line = item.range.start.line;
format!("{}:{}", file, line).into()
},
move |editor: &mut Editor, item| {