Commit Graph

22 Commits

Author SHA1 Message Date
wiz 5526319b35 In emacs mode, when expanding file names containing characters that should
get quoted with <ESC>*, _do_ quote them.
Patch from Federico Schwindt fgsch@openbsd -- thanks!
[rev 1.25 in OpenBSD version of this file]
2003-08-28 19:53:32 +00:00
wiz a420e618d0 Push (into yank buffer) words only if force_push is TRUE;
set force_push to TRUE in x_del_bword and x_del_fword.
Fixes behaviour where <meta-y> would put the previously yanked word in the yank buffer another time.
2003-08-26 09:06:50 +00:00
wiz bd6ed3b8c1 From OpenBSD:
revision 1.21
date: 2003/08/02 19:26:15;  author: fgsch;  state: Exp;  lines: +4 -2
On ESC-y ESC-y (yank-pop), also check that there is something to
insert (some text has been killed before). from otto@, fix bug report 3384.

On yank-pop error (no yank before), reset the index to killstack so
another yank-pop does not mangle the prompt if nothing was yanked, and
to avoid replacing a text when it shouldn't
(yank <something> yank-pop yank-pop).
otto@ ok.
2003-08-26 08:52:03 +00:00
wiz a7f5601ea5 Allow single letters to be yanked, not only words of two or more letters. 2003-08-26 08:40:51 +00:00
wiz 77f8e9c131 Add 'return' statement (and whitespace) to sync with OpenBSD version
of the patch committed in v1.12.
2003-08-26 07:35:21 +00:00
wiz 80d20cd1d2 From OpenBSD:
revision 1.23
date: 2003/08/23 02:30:59;  author: fgsch;  state: Exp;  lines: +2 -2
under emacs mode, fix the case when the globbed file and the longest
prefix lenghts are equal ("a .b" and "a ab" by instance).
found and tested by otto@.
2003-08-26 07:27:42 +00:00
agc 6377cac711 Add NetBSD RCS Ids. 2003-06-23 11:38:51 +00:00
provos c603c2b26f enable meta key in emacs mode for 7-bit locales. approved thorpej. 2002-10-10 17:41:19 +00:00
provos 0d78fff152 complete file names including a ~ correctly. 2002-09-27 13:23:55 +00:00
provos a94ce5a752 enable emacs mode, add tab key to do completion in emacs and vi mode.
from millert@openbsd.org.  approved by perry and thorpej.
2002-09-25 02:55:03 +00:00
provos f9b44bb190 change complete-list to first complete and then print a list,
also complete after '=' (dd), and ':' (ssh) and ` (backtick)
improvements from camield@openbsd.org.  approved by perry and thorpej.
2002-09-25 02:41:11 +00:00
sjg 84412e9292 Fix some aspects of globbing - in emacs mode at least.
echo ~<ESC><ESC> and $HOME<ESC><ESC> as well as ~/b<ESC><ESC> all
now expand correctly.
2002-01-25 23:40:51 +00:00
jdolecek 83a7edec11 remove debug printf accidentaly left in 1999-11-09 00:01:49 +00:00
jdolecek 3b4b01bddb in emacs mode, escape the contents of completed word appropriately even
in CT_COMPLIST case ("complete and then list (if non-exact)" mode)

Noticed by Soren S. Jorvang <soren@wheel.dk>.
1999-11-08 23:56:41 +00:00
jdolecek 7b61cc94ea Implement (somewhat enhanced) idea stealed from bash:
when completing the filename (either in vi mode with vi-tabcomplete on,
or in emacs mode after double esc), escape any shell special characters
and chars from $IFS with backslash - very handy especially when
dealing with filenames containing spaces

The patch has been sent to maintainer, but I haven't got any reply yet even
after about a month :(
1999-11-02 22:06:45 +00:00
hubertf b556fc7b2a make this build with -Werror 1999-10-20 15:49:15 +00:00
hubertf 48ee8d1290 resolve conflicts 1999-10-20 15:09:58 +00:00
christos 1f3392af64 char->unsigned char casts for is*() 1998-11-04 18:27:20 +00:00
mrg 2d5a1dd04f - change "register" variables into int's
- don't use char as an array index.
1998-03-29 04:39:03 +00:00
christos 90647eb832 Fix compiler warnings
Add WARNS=1
1997-07-20 17:41:56 +00:00
tls 2ab2e20cff RCS ID Police 1997-01-12 19:11:37 +00:00
jtc e1b2664cf1 import pdksh 5.2.8 1996-09-21 23:35:13 +00:00