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

action ADDCHARTOWORD can no longer add a tabulation to word

parent 4a3f4ab7
No related branches found
No related tags found
No related merge requests found
......@@ -578,7 +578,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;};
{return c.getTape("FORM").getHyp(0).size() <= 2000 && c.rawInput[c.rawInputHeadIndex] != '\t';};
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