diff options
author | Frederic Culot <calcurse@culot.org> | 2007-01-16 07:49:54 +0000 |
---|---|---|
committer | Frederic Culot <calcurse@culot.org> | 2007-01-16 07:49:54 +0000 |
commit | 6bbf3e5f2e6777feeaf19e42d9c8bb5b2da0a428 (patch) | |
tree | 952621a0090505b0502db07201f04bffbf15aee1 /src/todo.c | |
parent | 23e729651bf50a468afef469eaea3ef0e7544b64 (diff) | |
download | calcurse-6bbf3e5f2e6777feeaf19e42d9c8bb5b2da0a428.zip |
use of getstring() defines
Diffstat (limited to 'src/todo.c')
-rwxr-xr-x | src/todo.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,8 +1,8 @@ -/* $calcurse: todo.c,v 1.8 2006/12/15 15:25:50 culot Exp $ */ +/* $calcurse: todo.c,v 1.9 2007/01/16 07:52:29 culot Exp $ */ /* * Calcurse - text-based organizer - * Copyright (c) 2004-2006 Frederic Culot + * Copyright (c) 2004-2007 Frederic Culot * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -45,7 +45,8 @@ int todo_new_item(int total, int colr) char todo_input[MAX_LENGTH] = ""; status_mesg(mesg, ""); - if (getstring(swin, colr, todo_input, MAX_LENGTH, 0, 1) == 0) { + if (getstring(swin, colr, todo_input, MAX_LENGTH, 0, 1) == + GETSTRING_VALID) { while ( (ch < '1') || (ch > '9') ) { status_mesg(mesg_id, ""); ch = wgetch(swin); |