aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
authorPhilipp Mildenberger2023-04-05 16:56:19 +0000
committerPhilipp Mildenberger2023-05-18 20:04:49 +0000
commit2b746ea6fa6f7040e3ea51e1386bb914333594f4 (patch)
tree98d785641687ce929adee8ed304c210cbb9b8b0e /helix-term/src
parent39b9a4bba2a026844348886c9d9f2026a3d6f658 (diff)
Some minor clarity/cosmetic improvements
Co-authored-by: Pascal Kuthe <pascal.kuthe@semimod.de>
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/commands/lsp.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/commands/lsp.rs b/helix-term/src/commands/lsp.rs
index f7d35873..948f3484 100644
--- a/helix-term/src/commands/lsp.rs
+++ b/helix-term/src/commands/lsp.rs
@@ -1395,7 +1395,7 @@ pub fn rename_symbol(cx: &mut Context) {
let Some(language_server) = doc
.language_servers_with_feature(LanguageServerFeature::RenameSymbol)
- .find(|ls| language_server_id.is_none() || Some(ls.id()) == language_server_id)
+ .find(|ls| language_server_id.map_or(true, |id| id == ls.id()))
else {
cx.editor.set_error("No configured language server supports symbol renaming");
return;