Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Clean up the ugly casted frees. In one case, this meant eliminating a nasty | 2005-12-20 | 1 | -3/+2 | ||
| | | | | | | struct/union/casting nightmare when building the list of names for filename completion. In particular, be consistent about strduping and freeing the list data. | |||||
* | Do some delinting of strl-type functions. Also, remove a superfluous | 2005-12-20 | 1 | -3/+5 | ||
| | | | | word in the undo-list. | |||||
* | More name-clash delinting | 2005-12-13 | 1 | -2/+2 | ||
| | ||||||
* | Kill the NO_BACKUP #ifdef | 2005-11-20 | 1 | -25/+7 | ||
| | ||||||
* | toast NO_DIRED #ifdef; ok kjell | 2005-11-20 | 1 | -5/+1 | ||
| | ||||||
* | greedy use of typedef struct was making code harder to read; ok kjell cloder | 2005-11-18 | 1 | -16/+16 | ||
| | ||||||
* | Copy buffer before handing it to basename(). | 2005-11-13 | 1 | -4/+9 | ||
| | | | | Inspired by a patch from Han Boetes. | |||||
* | add missing /* ARGSUSED */ to quiet lint. | 2005-10-14 | 1 | -1/+2 | ||
| | ||||||
* | spacing | 2005-10-13 | 1 | -2/+2 | ||
| | ||||||
* | Make dired buffer read-only by default. | 2005-10-13 | 1 | -4/+14 | ||
| | | | | Noticed by Han Boetes | |||||
* | Use dired mode automatically if file specified for loading is | 2005-10-13 | 1 | -1/+17 | ||
| | | | | | a directory. Modified version of patch from Han Boetes. ok cloder@ | |||||
* | KNF and minor cleanup. Remove an impossible condition check. | 2005-10-13 | 1 | -15/+14 | ||
| | | | | | Also, remove annoying "now readonly" message, as this information is already reflected in the statusbar | |||||
* | Clean up eread handling in mg. (basically, fallout from the 'enter often | 2005-08-09 | 1 | -2/+3 | ||
| | | | | | | | | | means abort' behaviour added during the hackathon). Eliminates redundant ereply function, fixes miscellaneous cores when aborting, and move a number of assumed pathnames into the prompt text, since they are used there anyway. All changes consistent with emacs behavior ok beck@ many, many moons ago. | |||||
* | Add explicit public domain notices to all public domain files. | 2005-06-14 | 1 | -1/+3 | ||
| | | | | ok millert@, deraadt@ | |||||
* | Clean up find-alternate-file (C-x C-v) so abort returns to original | 2005-06-03 | 1 | -3/+43 | ||
| | | | | | | file, like its emacs ancestor. ok cloder@ | |||||
* | add find-alternate-file command and binding for ^X^V; ok cloder | 2005-05-30 | 1 | -1/+9 | ||
| | | | | (you're welcome kjell) | |||||
* | In find file, behave like emacs: the default starting directory for | 2005-05-27 | 1 | -3/+12 | ||
| | | | | | | completion is the directory of the current buffer's file, if any, rather than the working directory from where you launched mg. Prodding by reyk, ok reyk and fgont | |||||
* | correct strlcpy abuse, and always check for NULL return from find_buffer | 2005-04-21 | 1 | -1/+3 | ||
| | | | | ok cloder@, feedback from many | |||||
* | This is a no binary change which does: | 2005-04-03 | 1 | -36/+37 | ||
| | | | | | | | | | | - spelling, punctuation fixes - variable declaration lineup - use parentheses for return and sizeof - K&R function declarations -> ANSI - other minor code beautification ok henning@ | |||||
* | fix more BACKUP/NOBACKUP/NO_BACKUP confusion, again no binary change. | 2005-03-10 | 1 | -6/+6 | ||
| | | | | spotted by jmc@ | |||||
* | fix mg's behaviour with regards to files on which we do not have | 2005-03-09 | 1 | -6/+19 | ||
| | | | | | | | 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@ | |||||
* | stage 1 of the infinite minibuffer work - add support for on the fly | 2004-07-22 | 1 | -23/+27 | ||
| | | | | | | | 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! | |||||
* | fix the undo record size for insert-file so we do not get an extra byte | 2003-11-09 | 1 | -2/+2 | ||
| | ||||||
* | typos from Jonathon Gray; | 2003-11-08 | 1 | -2/+2 | ||
| | ||||||
* | remember the new filename on ^X^W | 2003-10-13 | 1 | -2/+10 | ||
| | | | | ok deraadt | |||||
* | spacing | 2003-08-16 | 1 | -2/+2 | ||
| | ||||||
* | support +number; rewritten from buggy code by mjc@bitz.ca, vincent ok | 2003-01-06 | 1 | -1/+4 | ||
| | ||||||
* | don't add undo records when we open a file, only when we insert it. | 2002-09-15 | 1 | -2/+10 | ||
| | | | | ok deraadt@ | |||||
* | replace the ugly and buggy adjustname function by a simple one using | 2002-07-25 | 1 | -4/+12 | ||
| | | | | | | simple APIs. makes mg not crash with 65k filenames... ok art@ | |||||
* | a few missing tests for malloc()'s return value. | 2002-07-03 | 1 | -1/+3 | ||
| | | | | ok art@ | |||||
* | KNF + ansi; from zyrnix (only the easy part of his diffs) | 2002-07-01 | 1 | -20/+11 | ||
| | ||||||
* | add an undo insert record on insert-file. this makes insert-file undoable. | 2002-06-19 | 1 | -10/+11 | ||
| | | | | ok deraadt@ | |||||
* | add an "auto-execute" feature, that allows binding function calls to | 2002-05-29 | 1 | -2/+12 | ||
| | | | | | | certain patterns. for example, `auto-execute "*.c" auto-indent-mode'. ok art@ | |||||
* | add a function to visit a file read-only mapped to C-x C-v | 2002-05-29 | 1 | -1/+12 | ||
| | | | | ok art@ | |||||
* | add readonly buffer support | 2002-03-16 | 1 | -1/+9 | ||
| | | | | | | plus some KNF ok art@ | |||||
* | * Move to ANSI function definitions. | 2002-03-11 | 1 | -7/+4 | ||
| | | | | | | * Add a whole lot of consts where I thought it made sense no ok, but no objections either... | |||||
* | Make multiple buffers with the same basename work correctly.. (like GNU | 2002-02-19 | 1 | -11/+7 | ||
| | | | | | | emacs) and unbreak a stupid loop at the same time. ok art@ | |||||
* | some KNF | 2002-02-14 | 1 | -3/+3 | ||
| | ||||||
* | Oups, don't print fname<1> when there's only one buffer for this file. | 2002-02-13 | 1 | -2/+5 | ||
| | ||||||
* | Make mg malloc the l_text element instead of reallocating whole LINE | 2002-02-13 | 1 | -2/+2 | ||
| | | | | structures all the time. | |||||
* | * Replace unsafe strcpy and strcat calls to safe strlcpy and strlcat. | 2002-02-13 | 1 | -7/+7 | ||
| | | | | | | | * Be a little bit more verbose about some errors * Fix some memory leaks in fileio.c ok deraadt@, art@ | |||||
* | spaces | 2001-05-24 | 1 | -27/+27 | ||
| | ||||||
* | Get rid of unnecessary casts of NULL. | 2001-05-23 | 1 | -5/+5 | ||
| | ||||||
* | remove VOID. We're way beyond the point where this could build with an | 2001-05-23 | 1 | -10/+10 | ||
| | | | | ancient compiler. | |||||
* | Cleanups in filename and buffer name handling. | 2001-05-04 | 1 | -65/+6 | ||
| | | | | Mostly just using libc instead of rolling our own. | |||||
* | $OpenBSD$ | 2001-01-29 | 1 | -0/+2 | ||
| | ||||||
* | More -Wall anmd KNF, from op2@tomahawk.SQUiSH.org | 2000-09-01 | 1 | -153/+173 | ||
| | ||||||
* | The start of KNF + -Wall. The code has been run through indent but | 2000-04-13 | 1 | -179/+226 | ||
| | | | | needs hand fixup. I stopped at keymap.c... | |||||
* | change WINDOW -> MGWIN to avoid curses type conflict | 2000-02-26 | 1 | -4/+4 | ||
| | | | | | convert to terminfo in tty*.c add support for some keypad function keys (arrows, pgup, pgdown) | |||||
* | initial import of mg2a | 2000-02-25 | 1 | -0/+482 | ||