summaryrefslogtreecommitdiff
path: root/src/utils.c
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2006-12-18 09:30:28 +0000
committerFrederic Culot <calcurse@culot.org>2006-12-18 09:30:28 +0000
commit5682ff3a1f399435679d57271f7b3166bdcbb453 (patch)
treeb7f90505a653b9f21e4459f54cd36fd3e4a821d1 /src/utils.c
parent9d377806657876d8c16c1850092d02f66a666fac (diff)
downloadcalcurse-5682ff3a1f399435679d57271f7b3166bdcbb453.zip
CTRL-K now works properly in getstring()
Diffstat (limited to 'src/utils.c')
-rwxr-xr-xsrc/utils.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/utils.c b/src/utils.c
index 2b5d9cd..677a9a8 100755
--- a/src/utils.c
+++ b/src/utils.c
@@ -1,4 +1,4 @@
-/* $calcurse: utils.c,v 1.19 2006/12/15 15:33:46 culot Exp $ */
+/* $calcurse: utils.c,v 1.20 2006/12/18 09:30:28 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -222,8 +222,7 @@ int getstring(WINDOW *win, int colr, char *str, int l, int x, int y)
case CTRL('K'): /* delete to end-of-line */
str = orig + newpos;
- for (; *str; ++str)
- *str = 0;
+ *str = 0;
len -= (len - newpos);
break;