Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

typeahead: Rename get_pygments_typeahead_list() for clarity.

Trident Pancakeda868d7e646a
diff --git a/web/src/realm_playground.js b/web/src/realm_playground.js
index a31de6ea004..b13eebd1360 100644
--- a/web/src/realm_playground.js
+++ b/web/src/realm_playground.js
@@ -42,7 +42,7 @@ export function sort_pygments_pretty_names_by_priority(generated_pygments_data)
}
}
-export function get_pygments_typeahead_list(query) {
+export function get_pygments_typeahead_list_for_settings(query) {
const language_labels = new Map();
// Adds a typeahead that allows selecting a custom language, by adding a
diff --git a/web/src/settings_playgrounds.js b/web/src/settings_playgrounds.js
index 5f8453d415a..0eba4b4f91b 100644
--- a/web/src/settings_playgrounds.js
+++ b/web/src/settings_playgrounds.js
@@ -165,7 +165,7 @@ function build_page() {
$search_pygments_box.typeahead({
source(query) {
- language_labels = realm_playground.get_pygments_typeahead_list(query);
+ language_labels = realm_playground.get_pygments_typeahead_list_for_settings(query);
return Array.from(language_labels.keys());
},
items: 5,