commit eeb7312231d91d32c561fd9dd07aeed554ba998d
parent 478bbc757a967a814c86f1448843ff72506b3b68
Author: rsc <devnull@localhost>
Date: Fri, 26 Mar 2004 03:07:52 +0000
Fortune fix
Diffstat:
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/cmd/dict/dict.h b/src/cmd/dict/dict.h
@@ -5,6 +5,8 @@ enum { NONE=0xe800, /* Emit nothing */
SPCS, /* Start of special character name */
PAR, /* Newline, indent */
LIGS, /* Start of ligature codes */
+
+/* need to keep in sync with utils.c:/ligtab */
LACU=LIGS, /* Acute (´) ligatures */
LGRV, /* Grave (ˋ) ligatures */
LUML, /* Umlaut (¨) ligatures */
@@ -23,6 +25,8 @@ enum { NONE=0xe800, /* Emit nothing */
LLEN, /* Lenis (ʼ) ligatures */
LBRB, /* Breve below (̮) ligatures */
LIGE, /* End of ligature codes */
+
+/* need to keep in sync with utils.c:/multitab */
MULTI, /* Start of multi-rune codes */
MAAS=MULTI, /* ʽα */
MALN, /* ʼα */
diff --git a/src/cmd/fortune.c b/src/cmd/fortune.c
@@ -22,7 +22,7 @@ main(int argc, char *argv[])
Biobuf *f, g;
index = unsharp(index);
- fortunes = unsharp(index);
+ fortunes = unsharp(fortunes);
newindex = 0;
oldindex = 0;