Deleted Added
full compact
hist.c (1574) hist.c (8870)
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

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

96hist_get(el)
97 EditLine *el;
98{
99 const char *hp;
100 int h;
101
102 if (el->el_history.eventno == 0) { /* if really the current line */
103 (void) strncpy(el->el_line.buffer, el->el_history.buf, EL_BUFSIZ);
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

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

96hist_get(el)
97 EditLine *el;
98{
99 const char *hp;
100 int h;
101
102 if (el->el_history.eventno == 0) { /* if really the current line */
103 (void) strncpy(el->el_line.buffer, el->el_history.buf, EL_BUFSIZ);
104 el->el_line.lastchar = el->el_line.buffer +
104 el->el_line.lastchar = el->el_line.buffer +
105 (el->el_history.last - el->el_history.buf);
106
107#ifdef KSHVI
108 if (el->el_map.type == MAP_VI)
109 el->el_line.cursor = el->el_line.buffer;
110 else
111#endif /* KSHVI */
112 el->el_line.cursor = el->el_line.lastchar;

--- 58 unchanged lines hidden ---
105 (el->el_history.last - el->el_history.buf);
106
107#ifdef KSHVI
108 if (el->el_map.type == MAP_VI)
109 el->el_line.cursor = el->el_line.buffer;
110 else
111#endif /* KSHVI */
112 el->el_line.cursor = el->el_line.lastchar;

--- 58 unchanged lines hidden ---