summaryrefslogtreecommitdiff
path: root/usr.bin/mg/undo.c
AgeCommit message (Expand)Author
2023-03-08Delete obsolete /* ARGSUSED */ lint comments.Philip Guenther
2016-09-05Initialize stack variables to zero before memmove().Mark Lumsden
2015-12-11Remove NULL-checks before free().mmcc
2015-03-19Clean up the includes in mg.Brian Callahan
2014-03-20Add some missing dobeeps.Mark Lumsden
2013-06-01If popbuf() fails, calling function should return FALSE.lum
2013-03-25Correct line numbers for undo-list.Florian Obser
2013-03-25Record when the buffer was saved in the undo history. The bufferFlorian Obser
2012-11-06Remove never read struct member, found while investigating a llvmFlorian Obser
2010-06-30you keep saying LIST_END. I do not think it means what you think itOwain Ainsworth
2009-06-05emacs handles the undo of a region kill (C-w) differently than a line killKjell Wooding
2009-06-04Add the notion of an "ephemeral" popup, so we can flag a windowKjell Wooding
2008-09-15Expose the undo commands as proper mg functions.Kjell Wooding
2008-06-14unf*ck undo.Kjell Wooding
2008-06-11With Vincent's permission, the last remaining chunk of mg has beenKjell Wooding
2007-09-16I can't think of any good reason to inline this.Kjell Wooding
2006-11-19spacingTheo de Raadt
2006-11-17Fix a needless inversion of flag names; i.e. change them from theKjell Wooding
2006-07-25Rename the header line of a buffer to b_headp, from the remarkablyKjell Wooding
2006-07-08Introduce a 'MODIFIED' boundary type for undo records.Kjell Wooding
2006-07-08Fix a trio of bugs in line numbering: adjusting linenos after undo,Kjell Wooding
2005-12-20Do some delinting of strl-type functions. Also, remove a superfluousKjell Wooding
2005-12-13Last round of easy delinting.Kjell Wooding
2005-12-13do some silly de-lintingKjell Wooding
2005-11-18greedy use of typedef struct was making code harder to read; ok kjell cloderTheo de Raadt
2005-11-18One liner to fix doubled yank buffer issue (c-K, c-Y, M-x undo, c-Y).Kjell Wooding
2005-11-12Paranoia. Check if last of a series of strlcats overflows. Pointed out byKjell Wooding
2005-10-14add missing /* ARGSUSED */ to quiet lint.Kjell Wooding
2005-10-13spacingTheo de Raadt
2005-10-13Make undoing of a yank operation work as expectedKjell Wooding
2005-10-11A while back, undo records were moved from the BUFFER struct to MGWIN.Kjell Wooding
2005-10-06Make mg undo much more emacs like (and correct).Kjell Wooding
2005-05-29Try to undo crazy Quebecois stuff that was breaking undoChad Loder
2005-04-29Remove unneeded include. Han Boetes.Otto Moerbeek
2005-04-03This is a no binary change which does:David Berghoff
2003-12-15shorter function namesVincent Labrecque
2003-11-29save the previous undo position as an offset in the buffer instead ofVincent Labrecque
2003-11-09better boundary placement.Vincent Labrecque
2003-11-09fix a bug i introduced in -r1.19, we should still use the current bufferVincent Labrecque
2003-11-09remove the only use of the hackish undo_add_custom function.Vincent Labrecque
2003-10-21make undo records per MGWIN, not per BUFFER...Vincent Labrecque
2003-06-26protosVincent Labrecque
2003-06-01various format string cleanups; tedu okTheo de Raadt
2003-05-20Finish KNF of prototypes. That should be all of them.Chad Loder
2003-04-13correct snprintf bound value, ok millert@, deraadt@Anil Madhavapeddy
2002-09-15don't add undo records when we open a file, only when we insert it.Vincent Labrecque
2002-08-22knfTheo de Raadt
2002-07-24 remove the CHANGE undo record type, use a combination of delete and insertVincent Labrecque
2002-06-20KNFify the return (return x -> return (x))Vincent Labrecque
2002-06-20 some KNFVincent Labrecque