From c17ca10e11db30f4b4924b69dbf3b1693025d4dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 13 Sep 2014 22:25:06 +0200 Subject: Introduce and use EPOS instead of (size_t)-1 --- editor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor.c') diff --git a/editor.c b/editor.c index c228f0e..7ca69f1 100644 --- a/editor.c +++ b/editor.c @@ -493,7 +493,7 @@ static void editor_prompt_update(Prompt *prompt) { static void editor_prompt_clear(Prompt *prompt) { Text *text = prompt->win->text; - while (text_undo(text) != (size_t)-1); + while (text_undo(text) != EPOS); window_cursor_to(prompt->win->win, 0); } -- cgit v1.2.3