From f6b644a804df114f146e182ea2e5dd4271fc841d Mon Sep 17 00:00:00 2001
From: Franck Dary <franck.dary@lis-lab.fr>
Date: Wed, 10 Nov 2021 11:56:01 +0100
Subject: [PATCH] moveWordIndexRelaxed is skipping multiwords

---
 reading_machine/src/Config.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/reading_machine/src/Config.cpp b/reading_machine/src/Config.cpp
index ce6af52..019d17d 100644
--- a/reading_machine/src/Config.cpp
+++ b/reading_machine/src/Config.cpp
@@ -468,6 +468,8 @@ void Config::moveWordIndexRelaxed(int relativeMovement)
   int dir = 1;
   if (relativeMovement < 0)
     dir = -1;
+  if (isMultiwordPredicted(wordIndex))
+    wordIndex += dir;
   for (int i = 0; i < abs(relativeMovement); i++)
     if (!moveWordIndex(dir))
       break;
-- 
GitLab