vi.c (84334) | vi.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: vi.c,v 1.7 1999/07/02 15:21:28 simonb Exp $ 37 */ 38 39#if !defined(lint) && !defined(SCCSID) 40static char sccsid[] = "@(#)vi.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: vi.c,v 1.7 1999/07/02 15:21:28 simonb Exp $ 37 */ 38 39#if !defined(lint) && !defined(SCCSID) 40static char sccsid[] = "@(#)vi.c 8.1 (Berkeley) 6/4/93"; 41#endif /* not lint && not SCCSID */ 42#include <sys/cdefs.h> |
43__FBSDID("$FreeBSD: head/lib/libedit/vi.c 84334 2001-10-01 23:00:29Z obrien $"); | 43__FBSDID("$FreeBSD: head/lib/libedit/vi.c 108533 2003-01-01 18:49:04Z schweikh $"); |
44 45/* 46 * vi.c: Vi mode commands. 47 */ 48#include "sys.h" 49#include "el.h" 50 51private el_action_t cv_action(EditLine *, int); --- 687 unchanged lines hidden (view full) --- 739/*ARGSUSED*/ 740vi_list_or_eof(EditLine *el, int c) 741{ 742 743#ifdef notyet 744 if (el->el_line.cursor == el->el_line.lastchar && 745 el->el_line.cursor == el->el_line.buffer) { 746#endif | 44 45/* 46 * vi.c: Vi mode commands. 47 */ 48#include "sys.h" 49#include "el.h" 50 51private el_action_t cv_action(EditLine *, int); --- 687 unchanged lines hidden (view full) --- 739/*ARGSUSED*/ 740vi_list_or_eof(EditLine *el, int c) 741{ 742 743#ifdef notyet 744 if (el->el_line.cursor == el->el_line.lastchar && 745 el->el_line.cursor == el->el_line.buffer) { 746#endif |
747 term_overwrite(el, STReof, 4); /* then do a EOF */ | 747 term_overwrite(el, STReof, 4); /* then do an EOF */ |
748 term__flush(); 749 return (CC_EOF); 750#ifdef notyet 751 } else { 752 re_goto_bottom(el); 753 *el->el_line.lastchar = '\0'; /* just in case */ 754 return (CC_LIST_CHOICES); 755 } --- 197 unchanged lines hidden --- | 748 term__flush(); 749 return (CC_EOF); 750#ifdef notyet 751 } else { 752 re_goto_bottom(el); 753 *el->el_line.lastchar = '\0'; /* just in case */ 754 return (CC_LIST_CHOICES); 755 } --- 197 unchanged lines hidden --- |