summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-12-02 17:45:26 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-12-02 17:45:26 +0100
commitbd32564108d1ec701debd4432dfacdd2742dca08 (patch)
tree07847a86e7eab10e43c7cd5afb2ac6ef376ba07f
parentVery functionnal but extra unwanted step (diff)
download42-minishell-bd32564108d1ec701debd4432dfacdd2742dca08.tar.gz
42-minishell-bd32564108d1ec701debd4432dfacdd2742dca08.tar.bz2
42-minishell-bd32564108d1ec701debd4432dfacdd2742dca08.tar.xz
42-minishell-bd32564108d1ec701debd4432dfacdd2742dca08.tar.zst
42-minishell-bd32564108d1ec701debd4432dfacdd2742dca08.zip
No more step
-rw-r--r--src/c_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c_init.c b/src/c_init.c
index 82600e8..09a7828 100644
--- a/src/c_init.c
+++ b/src/c_init.c
@@ -129,7 +129,7 @@ char *c_set_ptr(t_bool reset, char key, t_msh *msh)
p = msh->curr_hist_ptr;
context = msh->curr_hist_ptr;
}
- else if ((key == -1 && p - context != 0) || key == 1)
+ if ((key == -1 && p - context != 0) || key == 1)
{
p += (key == -1) ? (2 * key) : (0);
while (((key == -1 && p - context != 0) || key == 1)