Skip to content

Commit

Permalink
Final python fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggarra13 committed Oct 20, 2023
1 parent 06a299b commit 67ac7b7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions mrv2/lib/mrvWidgets/mrvPythonEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,19 @@ namespace mrv
line_start = b->line_start(end);
}

int parenthesisPos = end;
int parenthesisFound =
b->search_forward(line_start, "(", &parenthesisPos);

int pos = end;
int found = b->search_forward(line_start, "=", &pos);

if (parenthesisFound && pos > parenthesisPos)
{
found = 0;
pos = end;
}

if (b->char_at(line_start) != ' ')
{
end = b->next_char(end);
Expand Down
2 changes: 1 addition & 1 deletion mrv2/po/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: mrv2 v0.7.7\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2023-10-20 04:09-0300\n"
"POT-Creation-Date: 2023-10-20 04:12-0300\n"
"PO-Revision-Date: 2023-02-11 13:42-0300\n"
"Last-Translator: Gonzalo Garramuño <[email protected]>\n"
"Language-Team: Spanish <[email protected]>\n"
Expand Down

0 comments on commit 67ac7b7

Please sign in to comment.