From 1e7f7b1f17b0e50b1c3d39a47a311abd92f21908 Mon Sep 17 00:00:00 2001 From: Dmitry Ulyanov Date: Sun, 2 Apr 2023 21:11:41 +0300 Subject: [PATCH] incrementing the line number counter when calling `goto_reference` --- helix-term/src/commands/lsp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-term/src/commands/lsp.rs b/helix-term/src/commands/lsp.rs index f8e83a46c8b8..78dbc0be9e70 100644 --- a/helix-term/src/commands/lsp.rs +++ b/helix-term/src/commands/lsp.rs @@ -81,7 +81,7 @@ impl ui::menu::Item for lsp::Location { // Most commonly, this will not allocate, especially on Unix systems where the root prefix // is a simple `/` and not `C:\` (with whatever drive letter) - write!(&mut res, ":{}", self.range.start.line) + write!(&mut res, ":{}", self.range.start.line + 1) .expect("Will only failed if allocating fail"); res.into() }