summaryrefslogtreecommitdiff
path: root/usr.bin/mg
AgeCommit message (Collapse)Author
2005-05-05anotherTodd T. Fries
2005-05-01anotherjoshua stein
2005-04-29Remove unneeded include. Han Boetes.Otto Moerbeek
2005-04-28anotherDamien Miller
2005-04-28Get rid of unused arg to complete_function_list(). Han Boetes.Otto Moerbeek
2005-04-28That should be FALSE in previous commit.Otto Moerbeek
2005-04-28NULL is not an int. Han Boetes.Otto Moerbeek
2005-04-21correct strlcpy abuse, and always check for NULL return from find_bufferBob Beck
ok cloder@, feedback from many
2005-04-13use STD{IN,OUT,ERR}_FILENOTheo de Raadt
2005-04-03This is a no binary change which does:David Berghoff
- spelling, punctuation fixes - variable declaration lineup - use parentheses for return and sizeof - K&R function declarations -> ANSI - other minor code beautification ok henning@
2005-03-12sync usage() w/ synopsis;Jason McIntyre
2005-03-12- tweak synopsisJason McIntyre
- avoid line splits - minor tweaks
2005-03-12spacingTheo de Raadt
2005-03-10fix more BACKUP/NOBACKUP/NO_BACKUP confusion, again no binary change.Henning Brauer
spotted by jmc@
2005-03-10spacingTheo de Raadt
2005-03-10add -n command line switch to disable backup file generation, handyHenning Brauer
when you use mg for your mail from within mutt etc from PR3930, Carson Harding <harding@motd.ca>, Thanks!
2005-03-10the realpath() was needed to do do relative to absolute pathHenning Brauer
conversion. revert my diff that takes it out, and instead, on realpath() failure (like when you have no perms on pwd) just return the unexpanded path. everything still fine with that, just tab completeion and the like does not work (obviously). this was mainly for "sudo mg /etc/something" from ~ where ~ is nfs-mounted with root mapped to -2 and now, that case works as well as tab completion on insert-file etc.
2005-03-09remove useless -DBACKUP from CFLAGS and change the comment for BACKUPHenning Brauer
to NOBACKUP what the code actually uses (and reverse the descr too of course) spotted by jmc@ quite some time ago, no binary change.
2005-03-09fix mg's behaviour with regards to files on which we do not haveJean-Francois Brousseau
write access. diff originally from vincent@ and forgotten for a while. ok rohee@, "toss it in, i'll bitch if it doesn't work" henning@
2005-03-09the mg binary is too small, if we keep adding theo quotes we might beHenning Brauer
as big as vi one day
2005-03-02slacking is a medical conditionJolan Luff
2005-02-01make fbackupfile() return FALSE when the rename(2) from theHenning Brauer
mkstemp()-derived name to the filename~ one fails From: Han Boetes <han@mijncomputer.nl>
2005-01-31Safer backup file generation using mkstemp(); henning@ OKTodd C. Miller
2005-01-15hatrickJolan Luff
2005-01-14Couldn't resist this one...Marco Peereboom
2005-01-11no need to call realpath() in adjustname()Henning Brauer
realpath returns an error if cwd is not writeable, and that is quite common with NFS-mounted ~ and sudo mg /etc/something - annoying as hell. realpath is not needed at all here, so zap it. vincent ok
2004-12-07we did farts. now we do sperm. we are cutting edge.Henning Brauer
2004-11-11long live button pushers (except for when theo is nearby)Henning Brauer
2004-10-01No deletions unless initially agreed upon or with a very good reason;Miod Vallat
by popular demand; henning loses 7.5 karma points.
2004-10-01optimism in man kind does not belong hereHenning Brauer
(and kill a few boring ones)
2004-09-29<deraadt> A burp means less gas later.Henning Brauer
2004-09-15Add some amusing ones.Marco Peereboom
2004-08-23anotherHenning Brauer
2004-08-06And another...Marco Peereboom
2004-08-06oops. noted by lizardo@openbsd.org.mxArtur Grabowski
2004-08-04Batman?Artur Grabowski
2004-07-30A true gem.Marco Peereboom
2004-07-26document behaviour of mg +-number fileMichael Coulter
ok vincent@ better wording from jmc@
2004-07-22stage 1 of the infinite minibuffer work - add support for on the flyVincent Labrecque
buffer reallocation in veread(). This commit only changes the API. All the buffers have exactly the same bounds as before for now. tested by a couple of my very helpful testers!
2004-07-19correct error checking for strtonum, from mjc@bitz.caVincent Labrecque
2004-07-11oopsVincent Labrecque
I just realized I gave a really bad advise to pval, negative goto-line are entirely valid (mean # of lines from end of file) go back to INT_MIN as the lower bound
2004-07-11change lower bound to 0, row shouldn't be negative; suggested & ok vincentPeter Valchev
2004-07-11use strtonum instead of strtoul and don't abuse a long for intPeter Valchev
functionality; ok vincent
2004-07-09when saving a file, check whether it is newline terminated and if it is not,Vincent Labrecque
prompt the user and add the newline if he agrees. tested by a lot of helpful tech@ guys, approved by henning
2004-07-08make lint happier; vincent okTheo de Raadt
2004-07-08misplaced return NULL in the error pathVincent Labrecque
found by lint via deraadt ok deraadt
2004-07-08simplify the file writing loopVincent Labrecque
looked at by ian, tested on i386, macppc, sparc64
2004-06-28Unbreak. The bird noises were confusing me.Ryan Thomas McBride
2004-06-28Theo denys all allegations that he's becoming more relaxed.Ryan Thomas McBride
2004-06-12make M-x gid try to guess the symbol name to look up by looking at theVincent Labrecque
current word. ok beck@