mirror of
https://github.com/tildeclub/ex-vi.git
synced 2026-06-22 11:49:25 +00:00
* Fixed an old vi bug: If a vi command that yanked or deleted part of a line
was followed by an ex command that also yanked or deleted some text, a following 'p' vi command pasted the text affected by the former vi command. It now pastes the text of the last yank or delete even if that was an ex command.
This commit is contained in:
@@ -73,7 +73,7 @@
|
||||
|
||||
#ifndef lint
|
||||
#ifdef DOSCCS
|
||||
static char sccsid[] = "@(#)ex_cmds.c 1.17 (gritter) 11/27/04";
|
||||
static char sccsid[] = "@(#)ex_cmds.c 1.18 (gritter) 1/2/05";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -330,6 +330,7 @@ changdir:
|
||||
YANKreg(c);
|
||||
delete(0);
|
||||
appendnone();
|
||||
vkillDEL();
|
||||
continue;
|
||||
|
||||
/* edit */
|
||||
@@ -817,6 +818,7 @@ wq:
|
||||
YANKreg(c);
|
||||
else
|
||||
yank(0);
|
||||
vkillDEL();
|
||||
continue;
|
||||
|
||||
/* z */
|
||||
|
||||
Reference in New Issue
Block a user