Deleted Added
full compact
2c2
< * Copyright (C) 1984-2005 Mark Nudelman
---
> * Copyright (C) 1984-2007 Mark Nudelman
70a71
> int modified;
77c78
< { &mlist_search, &mlist_search, &mlist_search, NULL };
---
> { &mlist_search, &mlist_search, &mlist_search, NULL, 0 };
81c82
< { &mlist_examine, &mlist_examine, &mlist_examine, NULL };
---
> { &mlist_examine, &mlist_examine, &mlist_examine, NULL, 0 };
86c87
< { &mlist_shell, &mlist_shell, &mlist_shell, NULL };
---
> { &mlist_shell, &mlist_shell, &mlist_shell, NULL, 0 };
127c128
< * Clear command line on display.
---
> * Clear command line.
132d132
< clear_bot();
769a770
> curr_mlist->modified = 1;
1278c1279,1280
< cmd_int()
---
> cmd_int(frac)
> long *frac;
1280c1282
< register char *p;
---
> char *p;
1281a1284
> int err;
1283,1284c1286,1293
< for (p = cmdbuf; *p != '\0'; p++)
< n = (10 * n) + (*p - '0');
---
> for (p = cmdbuf; *p >= '0' && *p <= '9'; p++)
> n = (n * 10) + (*p - '0');
> *frac = 0;
> if (*p++ == '.')
> {
> *frac = getfraction(&p, NULL, &err);
> /* {{ do something if err is set? }} */
> }
1296a1306,1316
> /*
> * Return the last (most recent) string in the current command history.
> */
> public char *
> cmd_lastpattern()
> {
> if (curr_mlist == NULL)
> return (NULL);
> return (curr_mlist->curr_mp->prev->string);
> }
>
1312c1332
< if (strcmp(name, "-") == 0)
---
> if (strcmp(name, "-") == 0 || strcmp(name, "/dev/null") == 0)
1430a1451,1452
> if (!mlist_search.modified && !mlist_shell.modified)
> return;