summaryrefslogtreecommitdiffstats
path: root/usr.bin/mg/re_search.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Present the default choice before the colon in prompts. Matches GNU Emacsbcallah2017-08-061-2/+2
| | | | | | | | behavior. From Scott Cheloha <scottcheloha@gmail.com> ok florian@
* fix -Wshadow warnings.florian2017-05-301-4/+4
| | | | Found by bcallah, thanks!
* Clean up the includes in mg.bcallah2015-03-191-3/+6
| | | | | | | | | | This does the following: Moves all POSIX headers from sysdef.h into the individual .c files so that each file now only includes what it needs. All headers are properly sorted. Moves the remainder of sysdef.h to other files (mostly def.h) and deletes sysdef.h now that it's no longer contains anything. Tweak a comment that references sysdef.h so that it no longer does that. ok florian@
* Add some missing dobeeps.lum2014-03-201-1/+7
| | | | ok florian@
* Set the correct line number after successfully searching withflorian2013-12-201-3/+11
| | | | | re-search-{backward,forward}. OK lum
* rename re_match to regex_match to prevent a namespace conflict on Linux asjasper2013-09-241-31/+31
| | | | | | | | reported by Han Boetes. while here, rename re_buff accordingly for consistency. ok florian@
* Make the system bell toggleable via 'audible-bell', and if switchedlum2013-05-311-3/+3
| | | | | | off, make available an alternative 'visible-bell'. ok florian@ jasper@ Feedback Sunil Nimmagadda.
* It volates style(9), but in mg, #include"def.h" goes first. 'twas the way it was built. no binary change here. confirmed by lum@, tested by Henri Kemppainenkjell2011-01-211-2/+3
|
* Rename w_flag to w_rflag. This is not a general purposekjell2009-06-041-6/+6
| | | | | | | flag: it is for redisplay options only. I need an additional all-purpose flag, so renaming removes the desire to wrongly overload the existing one. Turdshine. No functional chage.
* Rename the header line of a buffer to b_headp, from the remarkablykjell2006-07-251-6/+6
| | | | unintuitive b_linep. No binary change.
* Make Window Flags more mnemonic (and less dumb); i.e.kjell2006-05-281-2/+2
| | | | | | WFHARD -> WFFULL (Redraw full window) WFFORCE -> WFFRAME (Reframe window). No binary change
* More name-clash delintingkjell2005-12-131-1/+7
|
* greedy use of typedef struct was making code harder to read; ok kjell cloderderaadt2005-11-181-6/+6
|
* Casefold on replace was killed ages ago (it was wrong). Remove akjell2005-11-181-12/+7
| | | | leftover (unused) variable.
* unused variablesderaadt2005-10-141-4/+4
|
* Clean up eread handling in mg. (basically, fallout from the 'enter oftenkjell2005-08-091-4/+5
| | | | | | | | | 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.kjell2005-06-141-1/+3
| | | | ok millert@, deraadt@
* Three more ereply that should be ereads. This fixes henning's "replacekjell2005-06-141-3/+3
| | | | | | with null string is busted" observation. ok henning@, cloder@
* if functions permits null reply from minibuffer, use eread (withkjell2005-06-051-2/+3
| | | | | EFNUL), not ereply. ok cloder
* This is a no binary change which does:db2005-04-031-16/+11
| | | | | | | | | | - spelling, punctuation fixes - variable declaration lineup - use parentheses for return and sizeof - K&R function declarations -> ANSI - other minor code beautification ok henning@
* stage 1 of the infinite minibuffer work - add support for on the flyvincent2004-07-221-15/+15
| | | | | | | 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!
* Finish KNF of prototypes. That should be all of them.cloder2003-05-201-31/+19
| | | | OK vincent@
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-7/+7
|
* * Replace unsafe strcpy and strcat calls to safe strlcpy and strlcat.vincent2002-02-131-2/+2
| | | | | | | * Be a little bit more verbose about some errors * Fix some memory leaks in fileio.c ok deraadt@, art@
* spacesmickey2001-05-241-23/+23
|
* remove VOID. We're way beyond the point where this could build with anart2001-05-231-3/+3
| | | | ancient compiler.
* $OpenBSD$niklas2001-01-291-0/+2
|
* More -Wall anmd KNF, from op2@tomahawk.SQUiSH.orgmillert2000-09-011-213/+142
|
* The start of KNF + -Wall. The code has been run through indent butmillert2000-04-131-404/+434
| | | | needs hand fixup. I stopped at keymap.c...
* Better backwards regexp searching. POSIX regexp's don't really givemillert2000-02-291-7/+8
| | | | a good way to do this.
* Make reverse searching work.millert2000-02-291-6/+16
|
* Use POSIX extended regular expressions.millert2000-02-281-106/+54
| | | | Reverse regex searching does not yet work.
* initial import of mg2aderaadt2000-02-251-0/+706