History log of /openbsd-current/usr.bin/vi/common/key.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.20 21-Apr-2022 millert

v_event_get: check qp->output for NULL before passing to e_memcmp().
Other users of qp->output already include a NULL check.
Avoids a crash when cursor key support is disabled in cl/cl_term.c.
From Jeremy Mates. OK tb@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.19 18-Apr-2017 deraadt

free(NULL) is ok so use it; from Michael W. Bombardieri


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.18 27-May-2016 martijn

Revert CHAR_T removal. Some signedness flaws were introduced.
Found the hard way by jca@


# 1.17 02-May-2016 martijn

Remove CHAR_T in favor of native types.

schwarze@ agrees with the direction.
Few tweaks and OK tb@


Revision tags: OPENBSD_5_9_BASE
# 1.16 20-Jan-2016 bentley

Remove ARG_CHAR_T, a relic from when the code was written K&R style.

ok millert@ schwarze@


# 1.15 06-Jan-2016 millert

Remove the numeric identifiers at the beginning of the messages
which used to be used as the message number to lookup in the
catalog. From Martijn van Duren


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.14 16-Jan-2015 deraadt

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution. These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)


# 1.13 12-Nov-2014 bentley

Ansify vi.

ok bcallah@ millert@


# 1.12 10-Nov-2014 tedu

remove old, unnecessary compat code. from Martin Natano


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.11 28-Nov-2013 krw

Convert the display screens and hidden screens CIRCLEQ's to TAILQ's.

ok pelikan@ zhuk@


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.10 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


Revision tags: OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.9 08-Jan-2006 miod

Make sure we can exit from a loop in v_key_init() regardless of the locale
we're in; from Ray Lai.


# 1.8 08-Jan-2006 miod

Explicit braces around macro fields and logical operations, gets rid of 148
warnings, no functional change.

From Ray Lai.


# 1.7 17-Oct-2005 otto

Use queue macros instead of directly accessing fields. ok pat@ "put it
in" deraadt@


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE
# 1.6 16-Feb-2002 millert

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.


Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.5 29-Jan-2001 niklas

$OpenBSD$


Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE
# 1.4 26-Nov-1999 millert

o Update README files etc. from nvi-1.79 so they have the correct info
o make port.h empty since we there is nothing we lack
o include <sys/param.h>, not <sys/types.h> in files that use MIN/MAX macros
o add perl api support since we have libperl (off by default)


Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE
# 1.3 16-Oct-1996 michaels

nvi 1.78:
+ Fix bugs when both the leftright scrolling and number edit options
were on.
+ Fix bug where splitting in the middle of the screen could repaint
incorrectly.
+ Fix first-nul in input bug, where random garbage was inserted.
+ Correct search and mark-as-motion-command bug, it's a line mode
action if the search starts at or before the first non<blank>.
+ Fix bug autoindent bug, where ^D could shift too far in the line.
+ Fix core dump where ! command called from the .exrc file.
+ Add the -S command-line option, which initializes vi to have the
secure edit option preset.


Revision tags: OPENBSD_2_0_BASE
# 1.2 24-Jul-1996 mickey

bring vi/ex up to 1.71


# 1.1 22-May-1996 deraadt

new vi


Revision tags: OPENBSD_6_2_BASE
# 1.19 18-Apr-2017 deraadt

free(NULL) is ok so use it; from Michael W. Bombardieri


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.18 27-May-2016 martijn

Revert CHAR_T removal. Some signedness flaws were introduced.
Found the hard way by jca@


# 1.17 02-May-2016 martijn

Remove CHAR_T in favor of native types.

schwarze@ agrees with the direction.
Few tweaks and OK tb@


Revision tags: OPENBSD_5_9_BASE
# 1.16 20-Jan-2016 bentley

Remove ARG_CHAR_T, a relic from when the code was written K&R style.

ok millert@ schwarze@


# 1.15 06-Jan-2016 millert

Remove the numeric identifiers at the beginning of the messages
which used to be used as the message number to lookup in the
catalog. From Martijn van Duren


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.14 16-Jan-2015 deraadt

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution. These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)


# 1.13 12-Nov-2014 bentley

Ansify vi.

ok bcallah@ millert@


# 1.12 10-Nov-2014 tedu

remove old, unnecessary compat code. from Martin Natano


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.11 28-Nov-2013 krw

Convert the display screens and hidden screens CIRCLEQ's to TAILQ's.

ok pelikan@ zhuk@


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.10 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


Revision tags: OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.9 08-Jan-2006 miod

Make sure we can exit from a loop in v_key_init() regardless of the locale
we're in; from Ray Lai.


# 1.8 08-Jan-2006 miod

Explicit braces around macro fields and logical operations, gets rid of 148
warnings, no functional change.

From Ray Lai.


# 1.7 17-Oct-2005 otto

Use queue macros instead of directly accessing fields. ok pat@ "put it
in" deraadt@


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE
# 1.6 16-Feb-2002 millert

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.


Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.5 29-Jan-2001 niklas

$OpenBSD$


Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE
# 1.4 26-Nov-1999 millert

o Update README files etc. from nvi-1.79 so they have the correct info
o make port.h empty since we there is nothing we lack
o include <sys/param.h>, not <sys/types.h> in files that use MIN/MAX macros
o add perl api support since we have libperl (off by default)


Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE
# 1.3 16-Oct-1996 michaels

nvi 1.78:
+ Fix bugs when both the leftright scrolling and number edit options
were on.
+ Fix bug where splitting in the middle of the screen could repaint
incorrectly.
+ Fix first-nul in input bug, where random garbage was inserted.
+ Correct search and mark-as-motion-command bug, it's a line mode
action if the search starts at or before the first non<blank>.
+ Fix bug autoindent bug, where ^D could shift too far in the line.
+ Fix core dump where ! command called from the .exrc file.
+ Add the -S command-line option, which initializes vi to have the
secure edit option preset.


Revision tags: OPENBSD_2_0_BASE
# 1.2 24-Jul-1996 mickey

bring vi/ex up to 1.71


# 1.1 22-May-1996 deraadt

new vi