summaryrefslogtreecommitdiffstats
path: root/usr.bin/mg/window.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* whitespacejasper2015-11-181-2/+2
|
* I assume KRANDOM was the previous name for FFRAND. KRANDOM is not inlum2015-10-291-2/+2
| | | | the mg source now.
* Fix line number bug when calling onlywind().lum2015-10-091-1/+5
|
* unifdef -U NO_DPROMPT and GOSREC.bcallah2015-03-251-8/+2
| | | | | | | | | | | | | | | | NO_DPROMPT has been around since the import of mg2a and it has never been considered a "(Common) compile-time option" in the Makefile. Assume everyone has been running mg this way since at least 2000 if not already in the 90s. Same with GOSREC. Has always been there but it looks like no one noticed it (and no one was running with it). Indeed, the mg tutorial appears to be oblivious to GOSREC being an option. With this commit there are no more #ifndef blocks in mg. Only a couple of #ifdef blocks remain. ok lum@
* Clean up the includes in mg.bcallah2015-03-191-1/+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@
* On delete-window, remember the position of dot and mark in the bufferflorian2014-05-281-1/+3
| | | | | | | so that an revisiting the buffer the correct line number is displayed. Found by jasper@ OK lum@
* Add some missing dobeeps.lum2014-03-201-1/+8
| | | | ok florian@
* Make the system bell toggleable via 'audible-bell', and if switchedlum2013-05-311-2/+2
| | | | | | off, make available an alternative 'visible-bell'. ok florian@ jasper@ Feedback Sunil Nimmagadda.
* Change Gnu to GNU in man page (also, while here, in README and in a comment)lum2011-08-011-2/+2
| | | | ok jmc@
* Add the notion of an "ephemeral" popup, so we can flag a windowkjell2009-06-041-23/+6
| | | | | | | | | | | for destruction at a later date. (in the process, add a window flag field) This fixes an issue noted by maja: namely, the *completion* window that pops up when you try to complete a filename on buffer load would destroy any second window that you happened to have open. ok maja@
* Rename w_flag to w_rflag. This is not a general purposekjell2009-06-041-10/+10
| | | | | | | 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.
* Display line number in the mg statusbar. Yes, it seems like a fuglykjell2006-06-011-1/+4
| | | | | | | | | | way to do it, but all the clever and pretty ways utterly failed. Basic use seems fine. We'll turdshine the special cases later. If it bothers you, use M-x line-number-mode, or put same in your ~/.mg file to disable. ok cloder, jason
* Another mnemonic rename, missed the first time.kjell2006-05-291-4/+4
| | | | Also missed the ok cloder.
* Make Window Flags more mnemonic (and less dumb); i.e.kjell2006-05-281-9/+9
| | | | | | WFHARD -> WFFULL (Redraw full window) WFFORCE -> WFFRAME (Reframe window). No binary change
* Fix a coredump occurring when the terminal is resized while mg isotto2006-02-251-6/+15
| | | | | suspended. Problem reported and fixed tested by reyk@; tweak by kjell@; ok kjell@
* More name-clash delintingkjell2005-12-131-2/+2
|
* greedy use of typedef struct was making code harder to read; ok kjell cloderderaadt2005-11-181-25/+24
|
* A while back, undo records were moved from the BUFFER struct to MGWIN.kjell2005-10-111-22/+4
| | | | | | | | This is nonsensical, and utterly broken if you are undo-ing across multiple buffers. Change them back to being associated with the BUFFER struct. (effectively, just revert the original change) ok deraadt@
* Add explicit public domain notices to all public domain files.kjell2005-06-141-1/+3
| | | | ok millert@, deraadt@
* This is a no binary change which does:db2005-04-031-18/+18
| | | | | | | | | | - spelling, punctuation fixes - variable declaration lineup - use parentheses for return and sizeof - K&R function declarations -> ANSI - other minor code beautification ok henning@
* make mail-mode more intelligent on middle-of-line insertions, and add avincent2004-01-271-1/+2
| | | | | | comment to change the wrapping column. (mail-set-margin) tested by henning and phessler, thanks!
* save the previous undo position as an offset in the buffer instead ofvincent2003-11-291-2/+2
| | | | a line/offset pair
* fix crash on startup by using the good allocation routine in edinit()vincent2003-10-271-3/+4
| | | | spotted and ok by henning
* make undo records per MGWIN, not per BUFFER...vincent2003-10-211-19/+55
|
* Finish KNF of prototypes. That should be all of them.cloder2003-05-201-20/+11
| | | | OK vincent@
* do not print "New size..." -- other emacs do not botherderaadt2002-02-201-2/+1
|
* some KNFderaadt2002-02-141-3/+3
|
* more gosmacsderaadt2002-02-081-4/+1
|
* spacesmickey2001-05-241-27/+27
|
* Get rid of unnecessary casts of NULL.art2001-05-231-2/+2
|
* $OpenBSD$niklas2001-01-291-0/+2
|
* More -Wall anmd KNF, from op2@tomahawk.SQUiSH.orgmillert2000-09-011-110/+131
|
* The start of KNF + -Wall. The code has been run through indent butmillert2000-04-131-85/+88
| | | | needs hand fixup. I stopped at keymap.c...
* change WINDOW -> MGWIN to avoid curses type conflictmillert2000-02-261-14/+14
| | | | | convert to terminfo in tty*.c add support for some keypad function keys (arrows, pgup, pgdown)
* initial import of mg2aderaadt2000-02-251-0/+399