Skip to content

Commit d258dc1

Browse files
phillipwoodgitster
authored andcommitted
sequencer: always allow tab after command name
The code that parses the todo list allows an unabbreviated command name to be followed by a space or a tab, but if the command name is abbreviated it only allows a space after it. Fix this inconsistency. Signed-off-by: Phillip Wood <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b697d92 commit d258dc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sequencer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2100,7 +2100,7 @@ static int parse_insn_line(struct repository *r, struct todo_item *item,
21002100
if (skip_prefix(bol, todo_command_info[i].str, &bol)) {
21012101
item->command = i;
21022102
break;
2103-
} else if ((bol + 1 == eol || bol[1] == ' ') &&
2103+
} else if ((bol + 1 == eol || bol[1] == ' ' || bol[1] == '\t') &&
21042104
*bol == todo_command_info[i].c) {
21052105
bol++;
21062106
item->command = i;

0 commit comments

Comments
 (0)