Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/dist/cdk Add patch to handle tabs correctly, from Peter Postma.
details: https://anonhg.NetBSD.org/src/rev/a4675ced8b67
branches: trunk
changeset: 565362:a4675ced8b67
user: wiz <wiz%NetBSD.org@localhost>
date: Mon Apr 05 10:21:23 2004 +0000
description:
Add patch to handle tabs correctly, from Peter Postma.
Closes my PR 16936.
diffstat:
dist/cdk/cdk.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (26 lines):
diff -r 133e444a49a0 -r a4675ced8b67 dist/cdk/cdk.c
--- a/dist/cdk/cdk.c Mon Apr 05 10:20:52 2004 +0000
+++ b/dist/cdk/cdk.c Mon Apr 05 10:21:23 2004 +0000
@@ -1,9 +1,9 @@
#include <cdk.h>
/*
- * $Author: garbled $
- * $Date: 2001/01/04 20:15:30 $
- * $Revision: 1.2 $
+ * $Author: wiz $
+ * $Date: 2004/04/05 10:21:23 $
+ * $Revision: 1.3 $
*/
char *GPasteBuffer = 0;
@@ -471,7 +471,8 @@
}
else if (string[from] == '\t')
{
- for (x=0; x < 8; x++)
+ int save = used;
+ for (x=0; x < 8 - (save % 8); x++)
{
if (result != 0)
result[used] = ' ';
Home |
Main Index |
Thread Index |
Old Index