Skip to content
This repository was archived by the owner on Jan 2, 2025. It is now read-only.

Commit 3bfcfb2

Browse files
committed
More tweaks
1 parent 0ca1d4a commit 3bfcfb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/bleep/src/webserver/autocomplete.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ pub(super) async fn handle(
155155
.filter(|q| has_target || !matches!(q, QueryResult::Snippets(_))),
156156
);
157157

158-
if ac_params.lang {
158+
if ac_params.lang && api_params.q.contains("lang:") {
159159
let mut ranked_langs = langs.into_iter().collect::<Vec<_>>();
160160
if let Some(partial) = partial_lang {
161161
ranked_langs.retain(|(l, _)| l.to_lowercase().contains(&partial));

0 commit comments

Comments
 (0)