Revert multiline changes

This commit is contained in:
2022-09-20 17:00:33 +01:00
parent 94bfd39085
commit 2a8117d0c1
3 changed files with 43 additions and 47 deletions

View File

@ -37,20 +37,6 @@ WHERE
.collect()
}
pub async fn multiline_autocomplete(
_ctx: Context<'_>,
partial: &str,
) -> Vec<AutocompleteChoice<String>> {
if partial.is_empty() {
vec![AutocompleteChoice { name: "Multiline content...".to_string(), value: "".to_string() }]
} else {
vec![
AutocompleteChoice { name: partial.to_string(), value: partial.to_string() },
AutocompleteChoice { name: "Multiline content...".to_string(), value: "".to_string() },
]
}
}
pub async fn time_hint_autocomplete(
ctx: Context<'_>,
partial: &str,