summaryrefslogtreecommitdiff
path: root/usr.bin/mg
AgeCommit message (Collapse)Author
2008-01-10kill trailing whitespace;Jason McIntyre
2008-01-10This file is in the public domain. ok deraadt@Kjell Wooding
2008-01-10Greatly improve this man page. ok jmc@Kjell Wooding
2007-11-27typos; ok jmc@Martynas Venckus
sys/dev/pci/pciide.c from naddy@
2007-09-16I can't think of any good reason to inline this.Kjell Wooding
Makes pcc happier, to boot.
2007-09-11use strcspn to properly overwrite '\n' in fgets returned bufferGilles Chehade
ok pyr@, ray@, millert@, moritz@, chl@
2007-08-28another quoteJasper Lievisse Adriaanse
2007-08-06this file has been too long without an edit, someone has obviouslyDamien Miller
been slacking
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-28Add a global-wd-mode command, which toggles between the currentKjell Wooding
behavior (every buffer maintains its own cwd) and the old behavior of one global working directory. This makes it slightly easier to hack on things like kernel code, where compilation, etc, are initiated from a different directory than you are working in. While here, fix setting/handling of global wd.
2007-04-24It's never too late to write "too late" correctly.Miod Vallat
2007-03-29Indicate when macro recording is in progress on the modeline.Kjell Wooding
(This should eventually move to becoming a "real" mode.) Don't print end macro message unless the macro is being recorded. ok cloder@. looks fine art@
2007-02-21Fix a reference to WFHARD in a comment; it was renamed WFFULL monthsDeanna Phillips
ago. ok kjell
2007-02-20Remove useless -h option (if you don't know the synopsis, how do you knowChad Loder
-h?). OK deraadt
2007-02-20Back out -h doc after discussion with theoChad Loder
2007-02-20Document -h option.Chad Loder
2007-02-13Fix a problem with wrapped incremental searches.Kjell Wooding
Basically, on wrap, the line pointer and offset would get out of sync, leading to incorrect line numbers or a segfault. Deanna Phillips did all the work of spotting it tracking it down to the right function. Thanks! While here, add emacs-like messages for wrapped and failed incremental searches. Tested by Deanna.
2007-02-08Fix a commentKjell Wooding
2007-02-08comment a functionKjell Wooding
2006-12-30one more 'verses'->'versus' typo in commentMartin Reindl
2006-12-29mention meta-key-mode in mg(1) to enable 8-bit character input. thisReyk Floeter
is required if you need to type characters like german umlauts. the mg documentation is still very incomplete and will need some more work. also split the manpage into sections to make it a bit more readable. ok jmc@
2006-12-24Fix a bug where inserting a file resulted in an incorrectKjell Wooding
line-number count for a buffer (M-X insert-file, M-> to reproduce). While here, fix a number of bugs with incorrect line numbers after swap point-and-mark Originally reported via debian's bug tracking system. Fix tested by Han Boetes and Deanna Phillips.
2006-12-24Add column-number indicator to status line (enabled when line-number-mode isKjell Wooding
enabled; i.e. by default). This is essentially free, and has been requested a few times now
2006-12-21Fix a realloc-style bug (curmap = reallocmap(curmap)) inKjell Wooding
keymap repapping. spotted by theo
2006-12-21Eliminate BSMAP #ifdef (we didn't define it). This exposes bsmap-mode,Kjell Wooding
which swaps ^H and DEL. ok jason@
2006-12-20kjell loves his extra spacesTheo de Raadt
2006-12-20Get rid of CVMVAS define. Originally to change pgforw/back parameterKjell Wooding
from pages to lines. We don't use it.
2006-12-20since auto-execute expects a function name at the "Execute:" prompt anyway,Kjell Wooding
enable autocomplete for that field.
2006-12-20kill an ill-formed (and totally unnecessary) realloc.Kjell Wooding
Spotted by theo.
2006-12-16Get rid of PREFIXREGION ifdef, since we always enable it anyway.Kjell Wooding
no binary change.
2006-11-19spacingTheo de Raadt
2006-11-18Move buffer name allocation into bnew() where it belongsKjell Wooding
2006-11-181. Fix line numbering/mark line bug in isearch.Kjell Wooding
To reproduce, set mark, move, isearch, then swap mark and point. 2. store mark in save structure (to reproduce search on a pattern twice, then backspace to back up the search stack) Both from Peter De Wachter (debian bug#391827) Thanks!
2006-11-18Due to a thinko on my part, (and a badly named structure member),Kjell Wooding
line numbers were horribly broken with pgup, pgdn. From peter de wachter, via debian bug#391827
2006-11-18Fix line number bug (actually, dot-mark bug). to reproduce:Kjell Wooding
-split window into two -open a file, set the mark -switch windows, open same file, exchange point-and-mark from peter de wachter (Debian bug#391827)
2006-11-17Fix a needless inversion of flag names; i.e. change them from theKjell Wooding
negative to the positive. undo_boundary_enable(TRUE) makes a LOT more sense than undo_no_boundary(FALSE). While here, whack a global, and fix a bug noted by otto: undoing a file insertion sometimes left stray characters around. ok beck@, otto@
2006-11-17fix a segfault on isearch. Using ^W to add more than NPAT chars to theKjell Wooding
search pattern had an off-by-one. Fix this and one other irritating behavior with long search patterns. Noted (similar diff proposed) and tested by deanna phillips
2006-11-01Don't overwrite line[strlen(line) - 1] when line is zero-length.Ray Lai
Initial patch by Charles Longeau <chl at tuxfamily dot org>. OK kjell@.
2006-09-19Use S_IS* macros insted of masking with S_IF* flags. The latter mayOtto Moerbeek
have multiple bits set, which lead to surprising results. Spotted by Paul Stoeber, more to come. ok millert@ pedro@ jaredy@ djm@
2006-09-02various improvements from deanna phillips; tweaked by myselfJason McIntyre
ok kjell
2006-08-18Move backward-paragraph, forward-paragraph to M-{, M-} respectively.Kjell Wooding
(not M-[, M-]). This is where emacs has it.
2006-08-01* move sys/queue.h inclusion to sysdef.h (it's system specific)Jason Wright
* add <signal.h> to sysdef.h (needed for sig_atomic_t on linux, and we get it by accident on OpenBSD) * remove <signal.h> from tty.c/spawn.c (not needed now that it's in sysdef.h) ok beck
2006-07-27unused functionTheo de Raadt
2006-07-25Add bfirstlp(), blastlp() macros, returning the first and last linesKjell Wooding
of a buffer respectively. Removes an ugly construction than necessitated "go to first line"-type comments throughout the code. No binary change
2006-07-25Rename the header line of a buffer to b_headp, from the remarkablyKjell Wooding
unintuitive b_linep. No binary change.
2006-07-17These bugs were fixed long ago.Kjell Wooding
2006-07-17Better usage() wording. Add -h to mean same. Some whitespace cleanKjell Wooding
2006-07-08Introduce a 'MODIFIED' boundary type for undo records.Kjell Wooding
This allows undo to clear the modified flag when undo-ing all the way from a loaded buffer. Originally whipped up at c2k6 after proddings from beck. jason@ ok.
2006-07-08Fix a trio of bugs in line numbering: adjusting linenos after undo,Kjell Wooding
cutting a block, and off-by-one linecount. Initial bug discovered by jason
2006-06-29- use <dirent.h> not <sys/dir.h> (this appeases FreeBSD's annoying #warning)Jason Wright
- grab <sys/time.h> before <sys/resource.h> like getrusage(2) says ok kjell