diff --git a/mrv2/lib/mrvWidgets/mrvPythonEditor.cpp b/mrv2/lib/mrvWidgets/mrvPythonEditor.cpp index 57af316f9..745feb513 100644 --- a/mrv2/lib/mrvWidgets/mrvPythonEditor.cpp +++ b/mrv2/lib/mrvWidgets/mrvPythonEditor.cpp @@ -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); diff --git a/mrv2/po/es.po b/mrv2/po/es.po index f1ad74652..f547a0ccf 100644 --- a/mrv2/po/es.po +++ b/mrv2/po/es.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: mrv2 v0.7.7\n" "Report-Msgid-Bugs-To: ggarra13@gmail.com\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 \n" "Language-Team: Spanish \n"