From b1d4a8194a12b74a5bae9951ae7d20e5af82f715 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Wed, 12 Apr 2000 08:24:15 +0000 Subject: new widget copy-prev-shell-word, like copy-prev-word but uses shell parsing to find word (10685) --- Src/Modules/parameter.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Src/Modules/parameter.c') diff --git a/Src/Modules/parameter.c b/Src/Modules/parameter.c index 6bfe43479..bc8918e0f 100644 --- a/Src/Modules/parameter.c +++ b/Src/Modules/parameter.c @@ -1093,11 +1093,15 @@ static char ** histwgetfn(Param pm) { char **ret, **p, *h, *e, sav; - LinkList l = newlinklist(); + LinkList l = newlinklist(), ll; LinkNode n; int i = addhistnum(curhist, -1, HIST_FOREIGN), iw; Histent he = quietgethistent(i, GETHIST_UPWARD); + ll = bufferwords(NULL); + for (n = firstnode(ll); n; incnode(n)) + pushnode(l, getdata(n)); + while (he) { for (iw = he->nwords - 1; iw >= 0; iw--) { h = he->text + he->words[iw * 2]; -- cgit 1.4.1