* 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:
Gunnar Ritter
2005-01-02 14:58:49 +00:00
parent 34bb648726
commit 6b5d023516
5 changed files with 23 additions and 12 deletions

View File

@@ -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 */