OpenBSD CVS

CVS log for src/usr.bin/mg/window.c


[BACK] Up to [local] / src / usr.bin / mg

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.37 / (download) - annotate - [select for diffs], Wed Mar 8 04:43:11 2023 UTC (14 months, 1 week ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, HEAD
Changes since 1.36: +1 -9 lines
Diff to previous 1.36 (colored)

Delete obsolete /* ARGSUSED */ lint comments.

ok miod@ millert@

Revision 1.36 / (download) - annotate - [select for diffs], Wed Nov 18 18:21:06 2015 UTC (8 years, 6 months ago) by jasper
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

whitespace

Revision 1.35 / (download) - annotate - [select for diffs], Thu Oct 29 20:20:49 2015 UTC (8 years, 6 months ago) by lum
Branch: MAIN
Changes since 1.34: +2 -2 lines
Diff to previous 1.34 (colored)

I assume KRANDOM was the previous name for FFRAND. KRANDOM is not in
the mg source now.

Revision 1.34 / (download) - annotate - [select for diffs], Fri Oct 9 07:27:56 2015 UTC (8 years, 7 months ago) by lum
Branch: MAIN
Changes since 1.33: +5 -1 lines
Diff to previous 1.33 (colored)

Fix line number bug when calling onlywind().

Revision 1.33 / (download) - annotate - [select for diffs], Wed Mar 25 20:53:31 2015 UTC (9 years, 1 month ago) by bcallah
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.32: +2 -8 lines
Diff to previous 1.32 (colored)

unifdef -U NO_DPROMPT and GOSREC.
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@

Revision 1.32 / (download) - annotate - [select for diffs], Thu Mar 19 21:22:15 2015 UTC (9 years, 2 months ago) by bcallah
Branch: MAIN
Changes since 1.31: +6 -1 lines
Diff to previous 1.31 (colored)

Clean up the includes in mg.
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@

Revision 1.31 / (download) - annotate - [select for diffs], Wed May 28 07:59:36 2014 UTC (9 years, 11 months ago) by florian
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.30: +3 -1 lines
Diff to previous 1.30 (colored)

On delete-window, remember the position of dot and mark in the buffer
so that an revisiting the buffer the correct line number is
displayed.
Found by jasper@
OK lum@

Revision 1.30 / (download) - annotate - [select for diffs], Thu Mar 20 07:47:29 2014 UTC (10 years, 2 months ago) by lum
Branch: MAIN
Changes since 1.29: +8 -1 lines
Diff to previous 1.29 (colored)

Add some missing dobeeps.
ok florian@

Revision 1.29 / (download) - annotate - [select for diffs], Fri May 31 18:03:45 2013 UTC (10 years, 11 months ago) by lum
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

Make the system bell toggleable via 'audible-bell', and if switched
off, make available an alternative 'visible-bell'.

ok florian@ jasper@ Feedback Sunil Nimmagadda.

Revision 1.28 / (download) - annotate - [select for diffs], Mon Aug 1 12:15:23 2011 UTC (12 years, 9 months ago) by lum
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

Change Gnu to GNU in man page (also, while here, in README and in a comment)
ok jmc@

Revision 1.27 / (download) - annotate - [select for diffs], Thu Jun 4 23:39:37 2009 UTC (14 years, 11 months ago) by kjell
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.26: +6 -23 lines
Diff to previous 1.26 (colored)

Add the notion of an "ephemeral" popup, so we can flag a window
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@

Revision 1.26 / (download) - annotate - [select for diffs], Thu Jun 4 02:23:37 2009 UTC (14 years, 11 months ago) by kjell
Branch: MAIN
Changes since 1.25: +10 -10 lines
Diff to previous 1.25 (colored)

Rename w_flag to w_rflag. This is not a general purpose
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.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Jul 25 08:22:32 2006 UTC (17 years, 9 months ago) by kjell
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.24: +6 -6 lines
Diff to previous 1.24 (colored)

Rename the header line of a buffer to b_headp, from the remarkably
unintuitive b_linep. No binary change.

Revision 1.24 / (download) - annotate - [select for diffs], Thu Jun 1 09:00:50 2006 UTC (17 years, 11 months ago) by kjell
Branch: MAIN
Changes since 1.23: +4 -1 lines
Diff to previous 1.23 (colored)

Display line number in the mg statusbar.  Yes, it seems like a fugly
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

Revision 1.23 / (download) - annotate - [select for diffs], Mon May 29 00:02:23 2006 UTC (17 years, 11 months ago) by kjell
Branch: MAIN
Changes since 1.22: +4 -4 lines
Diff to previous 1.22 (colored)

Another mnemonic rename, missed the first time.
Also missed the ok cloder.

Revision 1.22 / (download) - annotate - [select for diffs], Sun May 28 23:30:16 2006 UTC (17 years, 11 months ago) by kjell
Branch: MAIN
Changes since 1.21: +9 -9 lines
Diff to previous 1.21 (colored)

Make Window Flags more mnemonic (and less dumb); i.e.
WFHARD -> WFFULL (Redraw full window)
WFFORCE -> WFFRAME (Reframe window).
No binary change

Revision 1.21 / (download) - annotate - [select for diffs], Sat Feb 25 14:40:16 2006 UTC (18 years, 2 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.20: +15 -6 lines
Diff to previous 1.20 (colored)

Fix a coredump occurring when the terminal is resized while mg is
suspended. Problem reported and fixed tested by reyk@; tweak by
kjell@; ok kjell@

Revision 1.20 / (download) - annotate - [select for diffs], Tue Dec 13 06:01:27 2005 UTC (18 years, 5 months ago) by kjell
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

More name-clash delinting

Revision 1.19 / (download) - annotate - [select for diffs], Fri Nov 18 20:56:53 2005 UTC (18 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.18: +24 -25 lines
Diff to previous 1.18 (colored)

greedy use of typedef struct was making code harder to read; ok kjell cloder

Revision 1.18 / (download) - annotate - [select for diffs], Tue Oct 11 01:08:53 2005 UTC (18 years, 7 months ago) by kjell
Branch: MAIN
Changes since 1.17: +4 -22 lines
Diff to previous 1.17 (colored)

A while back, undo records were moved from the BUFFER struct to MGWIN.
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@

Revision 1.17 / (download) - annotate - [select for diffs], Tue Jun 14 18:14:40 2005 UTC (18 years, 11 months ago) by kjell
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.16: +3 -1 lines
Diff to previous 1.16 (colored)

Add explicit public domain notices to all public domain files.
ok millert@, deraadt@

Revision 1.16 / (download) - annotate - [select for diffs], Sun Apr 3 02:09:28 2005 UTC (19 years, 1 month ago) by db
Branch: MAIN
Changes since 1.15: +18 -18 lines
Diff to previous 1.15 (colored)

This is a no binary change which does:

- spelling, punctuation fixes
- variable declaration lineup
- use parentheses for return and sizeof
- K&R function declarations -> ANSI
- other minor code beautification

ok henning@

Revision 1.15 / (download) - annotate - [select for diffs], Tue Jan 27 23:43:37 2004 UTC (20 years, 3 months ago) by vincent
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.14: +2 -1 lines
Diff to previous 1.14 (colored)

make mail-mode more intelligent on middle-of-line insertions, and add a
comment to change the wrapping column. (mail-set-margin)

tested by henning and phessler, thanks!

Revision 1.14 / (download) - annotate - [select for diffs], Sat Nov 29 17:28:39 2003 UTC (20 years, 5 months ago) by vincent
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

save the previous undo position as an offset in the buffer instead of
a line/offset pair

Revision 1.13 / (download) - annotate - [select for diffs], Mon Oct 27 11:21:12 2003 UTC (20 years, 6 months ago) by vincent
Branch: MAIN
Changes since 1.12: +4 -3 lines
Diff to previous 1.12 (colored)

fix crash on startup by using the good allocation routine in edinit()

spotted and ok by henning

Revision 1.12 / (download) - annotate - [select for diffs], Tue Oct 21 22:48:07 2003 UTC (20 years, 7 months ago) by vincent
Branch: MAIN
Changes since 1.11: +55 -19 lines
Diff to previous 1.11 (colored)

make undo records per MGWIN, not per BUFFER...

Revision 1.11 / (download) - annotate - [select for diffs], Tue May 20 03:08:55 2003 UTC (21 years ago) by cloder
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.10: +11 -20 lines
Diff to previous 1.10 (colored)

Finish KNF of prototypes.  That should be all of them.
OK vincent@

Revision 1.10 / (download) - annotate - [select for diffs], Wed Feb 20 23:57:52 2002 UTC (22 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.9: +1 -2 lines
Diff to previous 1.9 (colored)

do not print "New size..." -- other emacs do not bother

Revision 1.9 / (download) - annotate - [select for diffs], Thu Feb 14 14:24:21 2002 UTC (22 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

some KNF

Revision 1.8 / (download) - annotate - [select for diffs], Fri Feb 8 21:21:11 2002 UTC (22 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.7: +1 -4 lines
Diff to previous 1.7 (colored)

more gosmacs

Revision 1.7 / (download) - annotate - [select for diffs], Thu May 24 03:05:27 2001 UTC (23 years ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.6: +27 -27 lines
Diff to previous 1.6 (colored)

spaces

Revision 1.6 / (download) - annotate - [select for diffs], Wed May 23 22:36:15 2001 UTC (23 years ago) by art
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Get rid of unnecessary casts of NULL.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Jan 29 01:58:10 2001 UTC (23 years, 3 months ago) by niklas
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.4: +2 -0 lines
Diff to previous 1.4 (colored)

$OpenBSD$

Revision 1.4 / (download) - annotate - [select for diffs], Fri Sep 1 14:59:09 2000 UTC (23 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.3: +131 -110 lines
Diff to previous 1.3 (colored)

More -Wall anmd KNF, from op2@tomahawk.SQUiSH.org

Revision 1.3 / (download) - annotate - [select for diffs], Thu Apr 13 06:12:18 2000 UTC (24 years, 1 month ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.2: +88 -85 lines
Diff to previous 1.2 (colored)

The start of KNF + -Wall.  The code has been run through indent but
needs hand fixup.  I stopped at keymap.c...

Revision 1.2 / (download) - annotate - [select for diffs], Sat Feb 26 22:53:16 2000 UTC (24 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.1: +14 -14 lines
Diff to previous 1.1 (colored)

change WINDOW -> MGWIN to avoid curses type conflict
convert to terminfo in tty*.c
add support for some keypad function keys (arrows, pgup, pgdown)

Revision 1.1 / (download) - annotate - [select for diffs], Fri Feb 25 19:08:52 2000 UTC (24 years, 2 months ago) by deraadt
Branch: MAIN

initial import of mg2a

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.