summaryrefslogtreecommitdiff
path: root/usr.bin/mg
AgeCommit message (Collapse)Author
2006-05-08spacingKjell Wooding
2006-05-08minor man page tweaks. From han boetes.Kjell Wooding
2006-05-03correct one more commentKjell Wooding
2006-05-03Do some KNF, clean up some unused junk that has lying around for 40-oddKjell Wooding
cvs revisions, and fix a few comments to match reality
2006-05-03len = strlen(foo); if foo[len - 1]... will do bad things if len == 0.Kjell Wooding
Avoid, and rearrange a test so it can't (hypothetically) overflow.
2006-05-02Make buffers store their own working directory. This makes things likeKjell Wooding
grep, compile, lint work as expected (act on current buffer's cwd). Display this path when opening or replacing a file, rather than relying on the user to guess, or remember.
2006-04-06Fix a bug whereby a written buffer (^X^W) would not have the correctKjell Wooding
trailing buffer number appended (e.g. "file<2>") in case an existing buffer shared its basename().
2006-04-03few more int that can become a size_tTheo de Raadt
2006-04-03fixed "text in message line would get stuck there" issue.Kjell Wooding
feedback from Philip Guenther and Han Boetes
2006-04-03lint love; ok kjellTheo de Raadt
2006-04-03Always leave compile buffer on first line after compilation.Kjell Wooding
Change 0->NUL while I'm here.
2006-04-02test char against '\0', not 0Kjell Wooding
2006-04-02fix ^W (delete to start of word) in minibuffer;Kjell Wooding
i.e. actually kill text, don't just move the pointer.
2006-03-30Clean up some allocations. Remove malloc casts, and some easyKjell Wooding
malloc(A*B)->calloc changes.
2006-03-28Use <sp> and <cr> as shortcuts for y/n (like emacs)Kjell Wooding
requested by Han Boetes.
2006-03-10i am going to be hated for including this oneDamien Miller
2006-02-25Fix a coredump occurring when the terminal is resized while mg isOtto Moerbeek
suspended. Problem reported and fixed tested by reyk@; tweak by kjell@; ok kjell@
2006-02-03Fix off by one ocurring if ^W immediate follows ^S; testing marc@;Otto Moerbeek
ok kjell@; PR 4991
2005-12-20Clean up the ugly casted frees. In one case, this meant eliminating a nastyKjell Wooding
struct/union/casting nightmare when building the list of names for filename completion. In particular, be consistent about strduping and freeing the list data.
2005-12-20Do some delinting of strl-type functions. Also, remove a superfluousKjell Wooding
word in the undo-list.
2005-12-20Fix broken "Undo of undo" when line is empty. Noticed by theo.Kjell Wooding
2005-12-15NULL != '\0'. Spotted by Han Boetes and a linux gcc.Kjell Wooding
2005-12-14argh. One problem with fixing a hidden global symbol is that if you miss one,Kjell Wooding
you get no warning. Fixes an immediate core in describe-bindings.
2005-12-13Fix a typo (introduced in rev 1.6) that utterly broke cost calculations.Kjell Wooding
In theory, mg should now be much more efficient on slow displays (hello, zaurus). Spotted by lint. ok millert.
2005-12-13Last round of easy delinting.Kjell Wooding
2005-12-13More name-clash delintingKjell Wooding
2005-12-13do some silly de-lintingKjell Wooding
2005-12-13If you're going to pass a length parameter, you should use it.Kjell Wooding
2005-12-13Add a "M-x lint" mode, now that lint is next-error friendly.Kjell Wooding
While here, delint some name clashes.
2005-11-22Move kill-related commands to their own file.Kjell Wooding
This will help move to a kill-ring.
2005-11-22Fix backwards insert into kill buffer (aaa \n bbb M-BS M-BS c-Y) byKjell Wooding
batching string before prepending. ok cloder, (grudgingly) beck
2005-11-22Fix up an ambiguous else (though ifdefed out at the moment)Kjell Wooding
2005-11-21kill kill kill unused stuff; ok kjellTheo de Raadt
2005-11-20#ifdef NO_DIR can go too. From Han Boetes.Kjell Wooding
2005-11-20Don't bind help to a null functionKjell Wooding
2005-11-20Kill the NO_BACKUP #ifdefKjell Wooding
2005-11-20GOSLING screen update always on, so #ifdef can go; ok kjellTheo de Raadt
2005-11-20toast NO_DIRED #ifdef; ok kjellTheo de Raadt
2005-11-19Remove DO_METAKEY here, too. Noted by Han Boetes.Kjell Wooding
2005-11-19Clean up some lint.Kjell Wooding
2005-11-19Goodbye NO_METAKEYKjell Wooding
(#ifdef is for emacs developers)
2005-11-18Split kill buffer code into a separate function.Kjell Wooding
2005-11-18clean up some comments after theo's cleanupKjell Wooding
2005-11-18greedy use of typedef struct was making code harder to read; ok kjell cloderTheo de Raadt
2005-11-18Don't ifdef out. Delete it. That's what the attic is for.Kjell Wooding
2005-11-18Casefold on replace was killed ages ago (it was wrong). Remove aKjell Wooding
leftover (unused) variable.
2005-11-18Kill a stupid interface. kgrow should take direction, not TRUE/FALSE.Kjell Wooding
2005-11-18One liner to fix doubled yank buffer issue (c-K, c-Y, M-x undo, c-Y).Kjell Wooding
2005-11-18kill more dumb or contextless.Kjell Wooding
2005-11-17"#ifdef is for emacs developers.", back after kjell criedChad Loder