Browse Source

[fix] history: change side of the key from launching f().

Moul 3 years ago
parent
commit
506d531611
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/keys.c

+ 2 - 2
src/keys.c

@@ -75,9 +75,9 @@ void	handle_keys2(t_e *e, int all)
 void	handle_key_arrows(t_e *e, int all)
 {
 	if (e->key[2] == 65 && all == 1)
-		move_history(e, DOWN);
-	else if (e->key[2] == 66 && all == 1)
 		move_history(e, UP);
+	else if (e->key[2] == 66 && all == 1)
+		move_history(e, DOWN);
 	else if (e->key[2] == 67)
 		move_right(e);
 	else if (e->key[2] == 68)