mirror of
https://github.com/vbatts/bvi.git
synced 2025-08-02 15:40:28 +00:00
bvi-1.4.2.src.tar.gz
4bba16c2b496963a9b939336c0abcc8d488664492080ae43a86da18cf4ce94f2 bvi-1.4.2.src.tar.gz https://bvi.sourceforge.net/download.html
This commit is contained in:
parent
40e8e886bc
commit
75fc14b579
24 changed files with 2482 additions and 1761 deletions
15
bvi.c
15
bvi.c
|
@ -13,10 +13,11 @@
|
|||
* 2013-08-23 V 1.4.0alpha
|
||||
* 2014-10-07 V 1.4.0
|
||||
* 2019-10-12 V 1.4.1
|
||||
* 2023-03-06 V 1.4.2
|
||||
*
|
||||
* NOTE: Edit this file with tabstop=4 !
|
||||
*
|
||||
* Copyright 1996-2019 by Gerhard Buergmann
|
||||
* Copyright 1996-2023 by Gerhard Buergmann
|
||||
* gerhard@puon.at
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
|
@ -33,6 +34,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "bvi.h"
|
||||
#include "set.h"
|
||||
|
@ -42,7 +44,7 @@
|
|||
#endif
|
||||
|
||||
|
||||
char *copyright = "(C) GPL 1996-2019 by Gerhard Buergmann";
|
||||
char *copyright = "(C) GPL 1996-2023 by Gerhard Buergmann";
|
||||
|
||||
jmp_buf env; /* context for `longjmp' function */
|
||||
|
||||
|
@ -145,6 +147,13 @@ main(argc, argv)
|
|||
/* This should be the beginners version */
|
||||
}
|
||||
|
||||
if (isatty(fileno(stdin)) == 0) {
|
||||
// Guckes
|
||||
fprintf(stderr, "Input is not from a terminal\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
while (n < argc) {
|
||||
switch (argv[n][0]) {
|
||||
case '-':
|
||||
|
@ -918,7 +927,7 @@ do_put(loc, n, buf)
|
|||
emsg(nobytes);
|
||||
return;
|
||||
}
|
||||
if (loc > maxpos) {
|
||||
if (loc >= maxpos) {
|
||||
beep();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue