Deleted Added
full compact
common.c (84334) common.c (108533)
1/*-
2 * Copyright (c) 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Christos Zoulas of Cornell University.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 26 unchanged lines hidden (view full) ---

35 *
36 * $NetBSD: common.c,v 1.9 2000/09/04 22:06:29 lukem Exp $
37 */
38
39#if !defined(lint) && !defined(SCCSID)
40static char sccsid[] = "@(#)common.c 8.1 (Berkeley) 6/4/93";
41#endif /* not lint && not SCCSID */
42#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Christos Zoulas of Cornell University.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 26 unchanged lines hidden (view full) ---

35 *
36 * $NetBSD: common.c,v 1.9 2000/09/04 22:06:29 lukem Exp $
37 */
38
39#if !defined(lint) && !defined(SCCSID)
40static char sccsid[] = "@(#)common.c 8.1 (Berkeley) 6/4/93";
41#endif /* not lint && not SCCSID */
42#include <sys/cdefs.h>
43__FBSDID("$FreeBSD: head/lib/libedit/common.c 84334 2001-10-01 23:00:29Z obrien $");
43__FBSDID("$FreeBSD: head/lib/libedit/common.c 108533 2003-01-01 18:49:04Z schweikh $");
44
45/*
46 * common.c: Common Editor functions
47 */
48#include "sys.h"
49#include "el.h"
50
51/* ed_end_of_file():

--- 118 unchanged lines hidden (view full) ---

170 /* if I'm at the end */
171 if (el->el_map.type == MAP_VI) {
172 if (el->el_line.cursor == el->el_line.buffer) {
173 /* if I'm also at the beginning */
174#ifdef KSHVI
175 return (CC_ERROR);
176#else
177 term_overwrite(el, STReof, 4);
44
45/*
46 * common.c: Common Editor functions
47 */
48#include "sys.h"
49#include "el.h"
50
51/* ed_end_of_file():

--- 118 unchanged lines hidden (view full) ---

170 /* if I'm at the end */
171 if (el->el_map.type == MAP_VI) {
172 if (el->el_line.cursor == el->el_line.buffer) {
173 /* if I'm also at the beginning */
174#ifdef KSHVI
175 return (CC_ERROR);
176#else
177 term_overwrite(el, STReof, 4);
178 /* then do a EOF */
178 /* then do an EOF */
179 term__flush();
180 return (CC_EOF);
181#endif
182 } else {
183#ifdef KSHVI
184 el->el_line.cursor--;
185#else
186 return (CC_ERROR);

--- 767 unchanged lines hidden ---
179 term__flush();
180 return (CC_EOF);
181#endif
182 } else {
183#ifdef KSHVI
184 el->el_line.cursor--;
185#else
186 return (CC_ERROR);

--- 767 unchanged lines hidden ---