Browse Source

[fix] termcaps: unset term mode when quitting with 'ctrl + d'.

Moul 2 years ago
parent
commit
26e6f38a85
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/keys.c

+ 3 - 0
src/keys.c

@@ -60,7 +60,10 @@ void	handle_keys2(t_e *e, int all)
 	else if (e->key[0] == 4)
 	{
 		if (e->len == 0 || e->d == 1)
+		{
+			set_term_modes(1);
 			error_message("", "exit", "exit");
+		}
 		else if (e->d == 0)
 			e->d = 1;
 	}