summaryrefslogtreecommitdiff
path: root/usr.bin/mg/basic.c
AgeCommit message (Collapse)Author
2008-06-10Add a clear-mark function.Kjell Wooding
Use it to clear the region it is copied (M-w), or yanked (C-w). This matches xemacs behavior, is not horribly different from gnu emacs, and way less wrong than the current behavior. Noticed by Han Boetes. ok otto@
2006-12-20Get rid of CVMVAS define. Originally to change pgforw/back parameterKjell Wooding
from pages to lines. We don't use it.
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-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-06-01Fix message on empty goto-line. While here, lose a strlen and KNF.Kjell Wooding
2006-06-01Display line number in the mg statusbar. Yes, it seems like a fuglyKjell Wooding
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
2006-05-28Make Window Flags more mnemonic (and less dumb); i.e.Kjell Wooding
WFHARD -> WFFULL (Redraw full window) WFFORCE -> WFFRAME (Reframe window). No binary change
2005-11-18greedy use of typedef struct was making code harder to read; ok kjell cloderTheo de Raadt
2005-08-09Clean up eread handling in mg. (basically, fallout from the 'enter oftenKjell Wooding
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.
2005-06-14Add explicit public domain notices to all public domain files.Kjell Wooding
ok millert@, deraadt@
2005-04-03This is a no binary change which does:David Berghoff
- spelling, punctuation fixes - variable declaration lineup - use parentheses for return and sizeof - K&R function declarations -> ANSI - other minor code beautification ok henning@
2005-03-10spacingTheo de Raadt
2004-07-22stage 1 of the infinite minibuffer work - add support for on the flyVincent Labrecque
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!
2003-09-19do not += snprintf; andrushock@korovino.netTheo de Raadt
2003-05-16fix the goal calculation routine so moving up and down moves to the rightVincent Labrecque
column. ok jason
2002-03-11 remove errno=0 assignments, we don't need these with Hakan's codeVincent Labrecque
2002-03-11 * Move to ANSI function definitions.Vincent Labrecque
* Add a whole lot of consts where I thought it made sense no ok, but no objections either...
2002-03-10Better long vs int. millert@ ok.Hakan Olsson
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2002-02-14 use strtol instead of atoi to get range checking, etcVincent Labrecque
2002-02-13 Make mg malloc the l_text element instead of reallocating whole LINEVincent Labrecque
structures all the time.
2002-02-08more gosmacsTheo de Raadt
2001-05-23remove VOID. We're way beyond the point where this could build with anArtur Grabowski
ancient compiler.
2001-02-12goto-line 0 should go to the beginning of the file, not the end;Todd C. Miller
smart@monkey.org
2001-01-29$OpenBSD$Niklas Hallqvist
2000-04-13The start of KNF + -Wall. The code has been run through indent butTodd C. Miller
needs hand fixup. I stopped at keymap.c...
2000-02-26change WINDOW -> MGWIN to avoid curses type conflictTodd C. Miller
convert to terminfo in tty*.c add support for some keypad function keys (arrows, pgup, pgdown)
2000-02-25initial import of mg2aTheo de Raadt