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

ADDCHARTOWORD can no longer add newline to words

parent a8cabca8
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 ...@@ -640,7 +640,7 @@ std::vector<Action::BasicAction> ActionBank::str2sequence(const std::string & na
auto undo = [](Config & c, Action::BasicAction &) auto undo = [](Config & c, Action::BasicAction &)
{removeCharFromBuffer(c, "FORM", 0);}; {removeCharFromBuffer(c, "FORM", 0);};
auto appliable = [](Config & c, Action::BasicAction &) auto appliable = [](Config & c, Action::BasicAction &)
{return c.getTape("FORM").getHyp(0).size() <= 2000 && c.rawInput[c.rawInputHeadIndex] != '\t' && !c.rawInputOnlySeparatorsLeft();}; {return c.getTape("FORM").getHyp(0).size() <= 2000 && c.rawInput[c.rawInputHeadIndex] != '\t' && c.rawInput[c.rawInputHeadIndex] != '\n' && !c.rawInputOnlySeparatorsLeft();};
Action::BasicAction basicAction = Action::BasicAction basicAction =
{Action::BasicAction::Type::Write, "", apply, undo, appliable}; {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