Skip to content

Commit d158713

Browse files
dschoGit for Windows Build Agent
authored and
Git for Windows Build Agent
committed
fixup??? built-in add -p: handle Escape sequences more efficiently
Made necessary by `ew/hashmap`. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent ec7e7cb commit d158713

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

compat/terminal.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,9 @@ static int is_known_escape_sequence(const char *sequence)
350350
p[0] = '^';
351351
p[1] = '[';
352352
FLEX_ALLOC_MEM(e, sequence, p, comma - p);
353-
hashmap_entry_init(e, strhash(e->sequence));
354-
hashmap_add(&sequences, e);
353+
hashmap_entry_init(&e->entry,
354+
strhash(e->sequence));
355+
hashmap_add(&sequences, &e->entry);
355356
}
356357
if (!*eol)
357358
break;

0 commit comments

Comments
 (0)