Skip to content
Snippets Groups Projects
Commit 74cdc98a authored by Franck Dary's avatar Franck Dary
Browse files

Action ADDCHARTOWORD is no longer appliable if the only input left are separators

parent 4d795cbf
No related branches found
No related tags found
No related merge requests found
......@@ -640,7 +640,7 @@ std::vector<Action::BasicAction> ActionBank::str2sequence(const std::string & na
auto undo = [](Config & c, Action::BasicAction &)
{removeCharFromBuffer(c, "FORM", 0);};
auto appliable = [](Config & c, Action::BasicAction &)
{return c.getTape("FORM").getHyp(0).size() <= 2000 && c.rawInput[c.rawInputHeadIndex] != '\t';};
{return c.getTape("FORM").getHyp(0).size() <= 2000 && c.rawInput[c.rawInputHeadIndex] != '\t' && !c.rawInputOnlySeparatorsLeft();};
Action::BasicAction basicAction =
{Action::BasicAction::Type::Write, "", apply, undo, appliable};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment