History log of /openbsd/usr.bin/mg/echo.c (Results 1 – 25 of 69)
Revision Date Author Comments
# 750a99bf 15-Oct-2022 op <op@openbsd.org>

replace ewprintf("") calls with eerase(): no functional difference.

ok florian@


# cee96425 02-Mar-2021 lum <lum@openbsd.org>

This diff soaks up the user input while the the maximum character
length boundary is crossed in the minbuffer and allows the user to see
the error message and respond accordingly. The goto named "nu

This diff soaks up the user input while the the maximum character
length boundary is crossed in the minbuffer and allows the user to see
the error message and respond accordingly. The goto named "null"
changed to "skipkey" as per Emil Engler's suggestion on tech@.

show more ...


# a0def2b0 01-Mar-2021 lum <lum@openbsd.org>

Put the hardcoded '\n' character which is found throughout mg into a
buffer specific variable. The diff should not produce any behavourial
changes in mg.


# 924cf9c1 24-Oct-2016 jasper <jasper@openbsd.org>

remove double semicolon

from Brian Callahan


# c940a32a 05-Dec-2015 jsg <jsg@openbsd.org>

Fix an incorrect use of sizeof(pointer) by removing it and switching
from strncasecmp to strcasecmp which will stop matching strings
with unwanted trailing characters.

ok jasper@ deraadt@


# b8654119 11-Nov-2015 lum <lum@openbsd.org>

Clear the mini buffer once a question has been displayed. ok jasper@


# 026ff01b 09-Nov-2015 jasper <jasper@openbsd.org>

use strncasecmp()

ok lum@


# 171375b3 09-Nov-2015 jasper <jasper@openbsd.org>

no need to initialize variables that are being initialized a few lines below

ok lum@ on a previous diff


# 2883e03b 31-Oct-2015 jasper <jasper@openbsd.org>

mark *Completions* buffer as read-only

ok lum@


# 5a4d2c51 29-Sep-2015 guenther <guenther@openbsd.org>

Mark eread(), veread(), and eformat() as printf-like and
Convert eread(buf, a2, a3, a4) to eread("%s", a2, a3, a4, buf)

ok millert@ lum@


# 4ed048d8 08-May-2015 bcallah <bcallah@openbsd.org>

Remove ereply prototype since it is never used. Tweak a comment to reflect
ereply removal.
ok jasper@ florian@


# cc6738c5 19-Mar-2015 bcallah <bcallah@openbsd.org>

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 so

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@

show more ...


# 67444bbb 16-Nov-2014 guenther <guenther@openbsd.org>

Stop using <sys/param.h>; replace MAXPATHLEN with PATH_MAX, stop using MAX(),
and pull in <limits.h> for *_MAX constants.

inspired on a diff from Kamil Rytarowski (n54 (at) gmx.com)
ok bcallah@


# dbf27552 20-Mar-2014 lum <lum@openbsd.org>

Add some missing dobeeps.
ok florian@


# 048419bb 31-May-2013 lum <lum@openbsd.org>

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

ok florian@ jasper@ Feedback Sunil Nimmagadda.


# dc5974fe 03-Nov-2012 florian <florian@openbsd.org>

fix potential memory leak, found by llvm

ok haesbaert, lum, benno


# f32c56c7 03-Nov-2012 florian <florian@openbsd.org>

kill dead assignment, found by llvm

ok haesbaert, lum, benno


# 4f9eb4f6 22-Oct-2012 florian <florian@openbsd.org>

Add (r)evert prompt to "File changed on disk; really edit the buffer"
prompt.

input, ok lum@, man bit ok jmc@, ok benno@


# 4bbcb10b 25-Sep-2012 lum <lum@openbsd.org>

Stop the space char completing a file name. This mimics more recent
versions of emacs.

kjell and jasper@ agree.


# 8a58c18d 12-Apr-2012 lum <lum@openbsd.org>

Remove the conditional directives NO_MACRO and NO_STARTUP.
They have not compiled for numerous years.
ok kjell@ millert@


# d4718e25 04-Jun-2009 kjell <kjell@openbsd.org>

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*

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@

show more ...


# 5f9606ff 03-Jun-2009 kjell <kjell@openbsd.org>

Match comment to reality, whitespace


# 3ab80832 02-Jun-2009 kjell <kjell@openbsd.org>

Fix the long-standing crash when >NXNAME characters were inserted
into minibuffer. Found and fixed by Martynas. Cleaned up
a bit so that error messages display properly in the status line.
Fixes Debi

Fix the long-standing crash when >NXNAME characters were inserted
into minibuffer. Found and fixed by Martynas. Cleaned up
a bit so that error messages display properly in the status line.
Fixes Debian bug #414846

show more ...


# 8bb760bf 02-Apr-2006 kjell <kjell@openbsd.org>

fix ^W (delete to start of word) in minibuffer;
i.e. actually kill text, don't just move the pointer.


# 0272f551 30-Mar-2006 kjell <kjell@openbsd.org>

Clean up some allocations. Remove malloc casts, and some easy
malloc(A*B)->calloc changes.


123