OpenModelica
OpenModelica copied to clipboard
Bad behaviour of text completion
Description
Steps to Reproduce
paste the following code into OMEdit:
model Test
Modelica.Electrical.Analog.Ideal.IdealGTOThyWithBadText;
end test;
Imagine we note that the word IdealGTOThyWithBadText is badly written.
We go with the cursor immediately after 'y' meaning that the text should continue as "thyristor"; we just write 'r' and OMEdit brilliantly proposes "IdealGTOThyristor" At this point, to accept the suggested completion, one clicks tab, expecting to read IdealGTOThyristor before ';'.
Instead we read IdealGTOThyristorWithBadText, which is wrong.
Expected Behavior
When clicking on tab, the correction should fix the error, substituting the bad word with the correct one. Currently, instead, it inserts the good word into the bad one, creating a bad result.
Screenshots
Version and OS
OM 1.19.0-beta1, Win10 64 bit.
- OpenModelica Version: [e.g.
omc --versionorHelp->About OMEditfrom OMEdit] - OS: [e.g. Windows 10, 64 bit]
- Versions of used Modelica libraries if applicable