minor vertical alignment fixes

This commit is contained in:
anon 2023-09-18 21:34:20 +02:00
parent d6555f6f0f
commit 8549ed19db

View File

@ -254,14 +254,16 @@ token_t * new_token(const char * const word,
// ### Highlighting ###
// --------------------
// XXX: meditate on this shit
int token_fits(const token_t * const token,
const char * const to,
const int string_offset,
const bool is_start_of_line,
int * match_offset) {
int * match_offset) { // XXX: rm this
UNUSED(match_offset);
//return regex_match(pattern, to, string_offset, match_offset);
return regex_match(token->syntax, to, is_start_of_line, string_offset);
match_t * m = regex_match(token->syntax, to, is_start_of_line, string_offset);
return (m ? m->width : 0);// XXX: nigger leaks
}
void render_string(const char * const string,