Skip to content

Commit 792e9c6

Browse files
committed
Match how Windows expands $* in aliases.
1 parent 9fbe490 commit 792e9c6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

clink/dll/doskey.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,9 @@ int continue_doskey(wchar_t* chars, unsigned max_chars)
117117
wchar_t* insert_from;
118118
int insert_length = 0;
119119

120-
if (c == 0)
120+
if (c == 0 && g_state.token_count > 1)
121121
{
122-
insert_from = g_state.input + g_state.tokens[0].length;
122+
insert_from = g_state.input + g_state.tokens[1].start;
123123
insert_length = min(wcslen(insert_from), max_chars);
124124
}
125125
else if (c < g_state.token_count)

0 commit comments

Comments
 (0)