summaryrefslogtreecommitdiff
path: root/usr.bin/mg/buffer.c
AgeCommit message (Collapse)Author
2002-03-16 Make these special buffers readonly by default. ok art@Vincent Labrecque
2002-03-16 add readonly buffer supportVincent Labrecque
plus some KNF ok art@
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-05 Fix a ridiculous bug I introduced in the buffer code. Free the undo recordsVincent Labrecque
list correctly.
2002-02-26keep undo records in the BUFFER structures insteda of having a huge list.Vincent Labrecque
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-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-14some KNFTheo de Raadt
2002-02-13 * Replace unsafe strcpy and strcat calls to safe strlcpy and strlcat.Vincent Labrecque
* Be a little bit more verbose about some errors * Fix some memory leaks in fileio.c ok deraadt@, art@
2002-01-18When listing buffers, detect if the buffer name is too long to fit in theArtur Grabowski
designated space and if it's too long, truncate it correctly and print a '$'-sign at the end of the name. Add support for selecting a buffer with ^M in the buffer list.
2002-01-18Remove the NROW and NCOL limits. The static arrays are now replaced withArtur Grabowski
dynamically allocated memory. Code written by Vincent Labrecque <limitln@Psyfreaks.CA> with some minor tweaks by me.
2001-11-25snprintf makes me happyTheo de Raadt
2001-08-18handle vsnprintf returning -1Theo de Raadt
2001-05-24spacesMichael Shalayeff
2001-05-23Get rid of unnecessary casts of NULL.Artur Grabowski
2001-05-23sprintf instead of two strcpy (there was a bug here)Artur Grabowski
2001-05-23remove VOID. We're way beyond the point where this could build with anArtur Grabowski
ancient compiler.
2001-05-23Creatively use addlinef when listing buffers (C-X-C-B).Artur Grabowski
This also fixes the strange formatting that showed up when the maximal buffer name grew. Now the "Size" column starts in the middle of the visible window instead of far outside.
2001-05-23Don't include the trailing NUL in output.Artur Grabowski
2001-05-23It's unnecessary to have addline as a function. Make it a macro.Artur Grabowski
2001-05-23Add addlinef that's an addline with printf-style format arguments.Artur Grabowski
Make addline a wrapper around addlinef. (should go away)
2001-05-04Cleanups in filename and buffer name handling.Artur Grabowski
Mostly just using libc instead of rolling our own.
2001-05-04Qick fix for an overflow in C-X C-B.Artur Grabowski
This function needs a lot of work.
2001-01-29$OpenBSD$Niklas Hallqvist
2000-09-01More -Wall anmd KNF, from op2@tomahawk.SQUiSH.orgTodd C. Miller
2000-04-13The start of KNF + -Wall. The code has been run through indent butTodd C. Miller
needs hand fixup. I stopped at keymap.c...
2000-02-26change WINDOW -> MGWIN to avoid curses type conflictTodd C. Miller
convert to terminfo in tty*.c add support for some keypad function keys (arrows, pgup, pgdown)
2000-02-25initial import of mg2aTheo de Raadt