From fb6bcb7364f67955dff0cbe3a979d3ab1c6804ac Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Wed, 31 May 2000 06:13:50 +0000 Subject: fix for ignore-line style (11679) --- ChangeLog | 2 ++ Src/Zle/compcore.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 9af3d33ea..e15903a44 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2000-05-31 Sven Wischnowsky + * 11679: Src/Zle/compcore.c: fix for ignore-line style + * 11678: Completion/Base/_arguments: avoid reporting the same ->state more than once diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c index 4fdfaa159..1a18f14e3 100644 --- a/Src/Zle/compcore.c +++ b/Src/Zle/compcore.c @@ -1895,6 +1895,10 @@ addmatches(Cadata dat, char **argv) argv = &ms; } } + if (dat->ppre) + ppl = strlen(dat->ppre); + if (dat->psuf) + psl = strlen(dat->psuf); for (; (s = *argv); argv++) { bpl = obpl; bsl = obsl; -- cgit 1.4.1