summaryrefslogtreecommitdiff
path: root/usr.bin/mg
AgeCommit message (Collapse)Author
2015-01-13Remove a variable that's not really being used.Brian Callahan
ok deraadt@ jasper@
2015-01-05As pointed out by Kaspars Bankovskis on tech@, there is no ifdef forMark Lumsden
STARTUP.
2015-01-02Remove unused variable.Mark Lumsden
2014-12-30Remove some checks that will always evaluate to true. Noticed by a veryBrian Callahan
recent clang. ok schwarze@ lum@
2014-12-06A few last 'easy' #include dedups.Kenneth R Westerback
ok tedu@
2014-11-19Fire up your IC fabs!Ingo Schwarze
2014-11-16Stop using <sys/param.h>; replace MAXPATHLEN with PATH_MAX, stop using MAX(),Philip Guenther
and pull in <limits.h> for *_MAX constants. inspired on a diff from Kamil Rytarowski (n54 (at) gmx.com) ok bcallah@
2014-11-16Don't save the return from getindent() if you don't need it; adjustPhilip Guenther
comments to reflect that based on a diff from Kamil Rytarowski (n54 (at) gmx.com)
2014-11-16pull in <time.h> for struct timespecPhilip Guenther
diff from Kamil Rytarowski (n54 (at) gmx.com)
2014-11-16ctype macros/functions expect unsigned char values. Note that the lgetc()Philip Guenther
macro does the cast internally like getc() does, so its return should be put an in int for the same reason. based on a diff from Kamil Rytarowski (n54 (at) gmx.com)
2014-11-16scroll_fwd should be const char *Philip Guenther
from Kamil Rytarowski (n54 (at) gmx.com)
2014-11-16constipate charcost()Philip Guenther
from Kamil Rytarowski (n54 (at) gmx.com)
2014-11-13Nuke GOOD define and just exit(0) on success. While there removeFlorian Obser
unused MALLOCROUND define. No binary change. From Martin Natano (natano AT natano DOT net). OK lum@
2014-11-03comment out no-tab-mode, since mg is currently compiled without it;Jason McIntyre
From: Kaspars Bankovskis ok lum
2014-10-19Move the description of mg automatic recentering further down theMark Lumsden
tutorial, next to the C-l (recenter) command description. This also removes confusion if you read the tutorial on a screen larger than 24 lines. Input jmc@ ok florian@
2014-10-17If gotoeop() is called requiring more than one iteration, it behavesMark Lumsden
oddly if it reaches the end of buffer before completing all iterations. This diff makes the kill-paragraph and forward-paragraph commands stop once they can go no further. ok florian@
2014-10-16Use reallocarray() where possible. There are further possible overflowsTheo de Raadt
in the region, but my time is limited...
2014-10-15some choice thoughts on back compatTed Unangst
2014-10-13gotoeop() does not behave as expected when there is no '\n' at the end of theMark Lumsden
buffer. ok florian@
2014-10-12Fix a bug in backward-paragraph. If the cursor is on the first line ofMark Lumsden
a paragraph, it jumps to the start of the previous paragraph if you press M-{. Input and fix to my diff from florian@
2014-10-11Userland reallocarray() audit.Doug Hogan
Avoid potential integer overflow in the size argument of malloc() and realloc() by using reallocarray() to avoid unchecked multiplication. ok deraadt@
2014-09-27sound reasoningSebastian Benoit
2014-08-19Let's talk about obstacles you face when trying to pull off a partial tedu@.Ingo Schwarze
2014-08-14Add bounce matching for [] and {} like mg already does with () and likeBrian Callahan
Emacs does. ok florian@
2014-06-12Remove a comparison that is always true. Reported by clang.Brian Callahan
Merge the new if into a single line, requested by florian@ ok matthew@ florian@
2014-05-28On delete-window, remember the position of dot and mark in the bufferFlorian Obser
so that an revisiting the buffer the correct line number is displayed. Found by jasper@ OK lum@
2014-05-08protip: "It's largely bad style to do (int)sizeof"Ted Unangst
amusingly, theo phrased this with considerably more restraint than i did.
2014-04-18We should probably thank OpenSSL.Ingo Schwarze
They gave Theo another chance to be happy.
2014-04-17I'm just trying to improve the code...Ted Unangst
2014-04-17spidey sensesStuart Henderson
2014-04-15My mailbox is full of shock.Ted Unangst
2014-04-14"the randomization in this entire codebase is a grand experiment in stupid"Ted Unangst
2014-04-10fix fd leaks in error paths missed last time aroundJonathan Gray
2014-04-09Revert 1.93, it breaks permission checks.Florian Obser
"go for it" deraadt@
2014-04-03When finding a file in a non-existant directory:Mark Lumsden
C-x C-f ~/no/dir/here/fn offer to make the directory by pressing 'y', instead of suggesting the make-directory command. ok jasper@
2014-04-02Add the '#' character as a comment character in the startup file.Mark Lumsden
Include ';' and '#' into man page. ok deraadt@ phessler@
2014-03-31Tidy up. No functional change.Mark Lumsden
2014-03-31Allow more than one level of directories to be create viaMark Lumsden
make-directory again. ok florian@ jasper@
2014-03-31Remove a redundant assignment for slashp in findnonblank().Brian Callahan
Remove a redundant comment in the same place while here. Tweaks from lum@ ok florian@ lum@
2014-03-28let's talk about shitHenning Brauer
2014-03-27Don't use nospace uninitialized in gotobop and gotoeop.Florian Obser
Problem noticed and diff from bcallah@. Slightly different fix by me. OK lum@, bcallah@
2014-03-27new-line -> newline;Jason McIntyre
not sure whether it's worth flattening the other few examples of this in our pages, but since it's used multiple times here without hyphen, at least keeps this page consistent;
2014-03-26Previously, C-t (transpose two chars) did not behave the same asMark Lumsden
Emacs. This diff makes mg behave more so. Though new-line characters are treated as any other. Difference from emacs observed and reported by deraadt@. First diff tested and ridiculed by deraadt@. Second diff not tested and not ridiculed by deraadt@ but at least email responded to.
2014-03-22donebell is no longer required.Mark Lumsden
2014-03-22If no default tag defined, still let user input a tag to find.Mark Lumsden
From Sunil Nimmagadda.
2014-03-22truer words were never spokenTed Unangst
2014-03-20Add some missing dobeeps.Mark Lumsden
ok florian@
2014-03-14Check if buffer is to be saved as a directory.Mark Lumsden
ok florian@
2014-03-06add missing stdio.h include for fparseln().Jasper Lievisse Adriaanse
from Ulrich Mueller, via Han Boetes ok florian@
2014-03-05complaint handlingFlorian Obser