Skip to content

Commit

Permalink
Remove special case for headless mode from collect_hl_styles()
Browse files Browse the repository at this point in the history
This was included for the sake of the test runner, but on second
thoughts it makes no sense.
  • Loading branch information
craigbarnes committed Dec 26, 2024
1 parent eaa9c6c commit 30b44e3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/completion.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,6 @@ void collect_hl_styles(EditorState *e, PointerArray *a, const char *prefix)
// Find or load the Syntax matching the string before the dot
const Syntax *syn = find_syntax(&e->syntaxes, filetype);
if (!syn) {
if (e->flags & EFLAG_HEADLESS) {
return;
}
syn = load_syntax_by_filetype(e, filetype);
if (!syn) {
return;
Expand Down

0 comments on commit 30b44e3

Please sign in to comment.