aboutsummaryrefslogtreecommitdiff
path: root/editor.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-09-13 22:25:06 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-09-13 22:29:36 +0200
commitc17ca10e11db30f4b4924b69dbf3b1693025d4dc (patch)
treedb8f9ed1b95d895e111f68181ab8433b6349639b /editor.c
parentc94579526c082e75b9ee8ec2fc189540884ac039 (diff)
downloadvis-c17ca10e11db30f4b4924b69dbf3b1693025d4dc.tar.gz
vis-c17ca10e11db30f4b4924b69dbf3b1693025d4dc.tar.xz
Introduce and use EPOS instead of (size_t)-1
Diffstat (limited to 'editor.c')
-rw-r--r--editor.c2
1 files changed, 1 insertions, 1 deletions
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);
}