mirror of
https://github.com/Savapitech/42sh.git
synced 2026-03-18 21:50:35 +01:00
[FIX] error with one
This commit is contained in:
@@ -33,7 +33,8 @@ int cmd_history_is_in(char *line)
|
||||
{
|
||||
for (int i = 0; line[i] != 0; i++)
|
||||
if (line[i] == CHAR_HIST &&
|
||||
(line[i + 1] != ' ' && line[i + 1] != '\t'))
|
||||
(line[i + 1] != ' ' && line[i + 1] != '\t'
|
||||
&& line[i + 1] != '\0'))
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user