summaryrefslogtreecommitdiffstats
path: root/smenu.c
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2018-09-26 23:11:41 +0200
committerpgen <p.gen.progs@gmail.com>2018-10-01 19:36:56 +0200
commit1b52c4c75422742f04363048dda64999adb8402c (patch)
treeee147bb82332931838cc667eb9203e091a285b94 /smenu.c
parentc49ca0ac21bb5af0ba5fb6732cfdab3191372f17 (diff)
Fix a bug when forcing an ending pattern search
An ending pattern could not be enhanced if this word was completed by spaces in a column per example.
Diffstat (limited to 'smenu.c')
-rw-r--r--smenu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/smenu.c b/smenu.c
index b0ebcff..c65bf92 100644
--- a/smenu.c
+++ b/smenu.c
@@ -1869,7 +1869,8 @@ update_bitmaps(search_mode_t mode, search_data_t * data,
start = str;
fc = 0;
- while (start)
+
+ while (start - str < word_a[n].len - daccess.flength)
{
/* Reset the bitmap */
/* """""""""""""""" */