summaryrefslogtreecommitdiff
path: root/usr.bin/mg
AgeCommit message (Collapse)Author
2002-05-10doc error; soeren@thing.dkTheo de Raadt
2002-05-06different fix; reported by zyrnix@users.sourceforge.netTheo de Raadt
2002-04-22 don't use /bin/cp to copy files.Vincent Labrecque
ok deraadt@
2002-04-22 fix mem leakVincent Labrecque
ok deraadt@
2002-04-15use fchmod and fchown instead; vincentTheo de Raadt
2002-04-01Add some frightening quote.Miod Vallat
2002-03-28Fix bug I introduced in previous commit.Todd C. Miller
2002-03-27Fix write() loop in ttflush(). Pointed out by vincent@Todd C. Miller
2002-03-27Fixes the the following problems (from zyrnix)Todd C. Miller
1) Mg crashes with column width of 1, rows > 2 2) Mg panics on resizing due to incomplete write 3) Mg doesn't compile with STARTUPFILE defined deraadt@ OK
2002-03-26Add a new vax reference. (after prompting by miod)Hugh Graham
2002-03-18 Enter the new undo code. it is still disabled since it has bugs, but it'sVincent Labrecque
somewhat more useful.... ok millert@ + no objections on ICB
2002-03-18 grep/compile mode shouldn't be readonly by default.Vincent Labrecque
ok art@
2002-03-16 This should've been commited yesterday, before the funmap change.Vincent Labrecque
ok millert@
2002-03-16 Make these special buffers readonly by default. ok art@Vincent Labrecque
2002-03-16 map undo_dump to the "undo-list" command.Vincent Labrecque
2002-03-16 add readonly buffer supportVincent Labrecque
plus some KNF ok art@
2002-03-11 remove errno=0 assignments, we don't need these with Hakan's codeVincent Labrecque
2002-03-11 * Move to ANSI function definitions.Vincent Labrecque
* Add a whole lot of consts where I thought it made sense no ok, but no objections either...
2002-03-10Better long vs int. millert@ ok.Hakan Olsson
2002-03-05 Fix a ridiculous bug I introduced in the buffer code. Free the undo recordsVincent Labrecque
list correctly.
2002-03-01disable undo until it is fixed to be (1) correct and (2) not crash like it ↵Theo de Raadt
does now
2002-02-26keep undo records in the BUFFER structures insteda of having a huge list.Vincent Labrecque
2002-02-22if file mode known, try to avoid a race.. i think. millert spotted a bug in ↵Theo de Raadt
my first draft
2002-02-21 "rephrase" the loop's condition, gets rid of an ugly operation.Vincent Labrecque
2002-02-21KNFTheo de Raadt
2002-02-21document undoTheo de Raadt
2002-02-21 Save undo records for newline insertions.Vincent Labrecque
That makes mg behave more like GNU emacs.
2002-02-21 Don't ignore the argument to undo. (makes ^U work)Vincent Labrecque
2002-02-21remove a wrapper around getenv()Theo de Raadt
2002-02-21always define CHARMASKTheo de Raadt
2002-02-21^Xu is also an undo charTheo de Raadt
2002-02-21 Typo and...Vincent Labrecque
Duh, newlines aren't even stored in the lines' content, check for a 0 length line to detect deleting newlines.
2002-02-21It seems you need to have hacked mg at some point to be considered aDaniel Hartmeier
true old fart, so here's my contribution ;) Don't use the same va_list twice without re-va_start()ing it, doesn't work on macppc.
2002-02-21signal-safe window size changingTheo de Raadt
2002-02-20do not print "New size..." -- other emacs do not botherTheo de Raadt
2002-02-20bind C-_ to undo.Artur Grabowski
2002-02-20 Save newline deletes in their own undo record.Vincent Labrecque
fixes the ^K^K bugs.
2002-02-20 Add undo code to mg.Vincent Labrecque
needs further hacking. ok `whole bunch of people on icb'@
2002-02-19 Make multiple buffers with the same basename work correctly.. (like GNUVincent Labrecque
emacs) and unbreak a stupid loop at the same time. ok art@
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2002-02-15 make pressing return in dired mode open the file we're currently at.Vincent Labrecque
ok deraadt@
2002-02-14 remove the strcpy call, plus some KNFVincent Labrecque
ok deraadt@
2002-02-14d_makename now takes a length parameter so we can remove theVincent Labrecque
strcpy call.
2002-02-14 some programs now need the errno definition and sys/params, so put them inVincent Labrecque
there.
2002-02-14 use strtol instead of atoi to get range checking, etcVincent Labrecque
2002-02-14some KNFTheo de Raadt
2002-02-14spellingTheo de Raadt
2002-02-14 Oups, my chartypes commit broke this.Vincent Labrecque
Use mg specific _MG_U/_MG_L chartypes instead of systemwide ones.
2002-02-14 the "theo-mode" is said to be a 'standalone' extension in main.c, beVincent Labrecque
coherent.
2002-02-14 Change character types definitions defines so they don't clash withVincent Labrecque
the system's ctype.h. ok art@