summaryrefslogtreecommitdiff
path: root/src/string_vec.h
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-11-19 19:33:57 +0000
committerPhil Jones <philj56@gmail.com>2022-11-19 19:33:57 +0000
commit8ab1b98328d720dec70087f0435210cdd5c67852 (patch)
treec084a2faf2be548f67450dca5c4d6d92adfee4c1 /src/string_vec.h
parent5da0579864a13b11bf0808f7f69f7b22f18054b1 (diff)
Make vector finding functions names clearer.
This adds `_sorted` to the names of `string_vec_find` and `desktop_vec_find`, to make it clear that these functions require their input to already be sorted. Also fix a potential bug from not sorting the list of desktops in drun mode.
Diffstat (limited to 'src/string_vec.h')
-rw-r--r--src/string_vec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string_vec.h b/src/string_vec.h
index f8ca3e0..f04b385 100644
--- a/src/string_vec.h
+++ b/src/string_vec.h
@@ -35,7 +35,7 @@ void string_vec_history_sort(struct string_vec *restrict vec, struct history *hi
void string_vec_uniq(struct string_vec *restrict vec);
-struct scored_string *string_vec_find(struct string_vec *restrict vec, const char *str);
+struct scored_string *string_vec_find_sorted(struct string_vec *restrict vec, const char *str);
[[nodiscard("memory leaked")]]
struct string_vec string_vec_filter(