1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-11 13:50:48 -05:00

[Window] revert accidental changes to window.c

This commit is contained in:
Dave Davenport 2021-03-29 13:59:26 +02:00
parent 750dbad729
commit 44d8320e5c

View file

@ -751,15 +751,11 @@ static void helper_eval_add_str ( GString *str, const char *input, int l, int ma
else {
if ( nc > l ) {
int bl = g_utf8_offset_to_pointer ( input_nn, l ) - input_nn;
char *tmp = g_regex_escape_string(input_nn, bl);
g_string_append ( str, tmp );
g_free(tmp);
g_string_append_len ( str, input_nn, bl );
}
else {
spaces = l - nc;
char *tmp = g_regex_escape_string(input_nn, -1);
g_string_append ( str, tmp );
g_free(tmp);
g_string_append ( str, input_nn );
}
}
while ( spaces-- ) {
@ -823,7 +819,6 @@ static char *_get_display_value ( const Mode *sw, unsigned int selected_line, in
if ( c->active ) {
*state |= ACTIVE;
}
*state |= MARKUP;
return get_entry ? _generate_display_string ( rmpd, c ) : NULL;
}