diff options
author | ache <ache@FreeBSD.org> | 1997-06-07 12:17:44 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-06-07 12:17:44 +0000 |
commit | b6bac891b077ba9da2b507a621c4a85d8eb378f1 (patch) | |
tree | 273a40857d601fa83d190bfbfb6ae23041a7743d /contrib/libreadline/kill.c | |
parent | c83c156e7342a7eb5f28600f69a0847e24720fc8 (diff) | |
download | FreeBSD-src-b6bac891b077ba9da2b507a621c4a85d8eb378f1.zip FreeBSD-src-b6bac891b077ba9da2b507a621c4a85d8eb378f1.tar.gz |
Virgin import of readline-2.1, unneded docs deleted
Diffstat (limited to 'contrib/libreadline/kill.c')
-rw-r--r-- | contrib/libreadline/kill.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/contrib/libreadline/kill.c b/contrib/libreadline/kill.c index 89f6b55..352f37d 100644 --- a/contrib/libreadline/kill.c +++ b/contrib/libreadline/kill.c @@ -53,6 +53,7 @@ extern Function *rl_last_func; extern void _rl_init_argument (); extern int _rl_set_mark_at_pos (); +extern void _rl_fix_point (); extern void _rl_abort_internal (); extern char *xmalloc (), *xrealloc (); @@ -384,7 +385,11 @@ int rl_kill_region (count, ignore) int count, ignore; { - return (region_kill_internal (1)); + int r; + + r = region_kill_internal (1); + _rl_fix_point (1); + return r; } /* Copy COUNT words to the kill ring. DIR says which direction we look @@ -521,7 +526,7 @@ rl_yank_nth_arg (count, ignore) inserts it right *after* rl_point. */ if (rl_editing_mode == vi_mode) { - rl_vi_append_mode (); + rl_vi_append_mode (1, ignore); rl_insert_text (" "); } #endif /* VI_MODE */ |