SynAutoComplete delete part of the text when the command is at the end of the line
Original Reporter info from Mantis: llutti
-
Reporter name: Luciano Cargnelutti
Original Reporter info from Mantis: llutti
- Reporter name: Luciano Cargnelutti
Description:
SynAutoComplete delete part of the text when the command is at the end of the line and text will be replace have a line starts with many spaces.
Steps to reproduce:
- Add SynEdit and SynAutoComplete components in the form;
- Associate SynEdit to SynAutoComplete;
- Add the text below in the property "AutoCompleteLines":
ssa
=SQL_Criar(cPesquisa);
=SQL_UsarSQLSenior2(cPesquisa, 1);
=SQL_UsarAbrangencia(cPesquisa, 0);
=SQL_DefinirComando(cPesquisa, "|
= ");
=SQL_AbrirCursor(cPesquisa);
=nAchou = 0;
=Se (SQL_EOF(cPesquisa) = cFalso)
= nAchou = 1;
=SQL_Destruir(cPesquisa);
- Run the project;
- To generate the error: Typing on SynEdit "ssa" and press SHIFT + SPACE (the result will be like the text below)
SQL_Criar(cPesquisa);
SQL_UsarSQLSenior2(cPesquisa, 1);
SQL_UsarAbrangencia(cPesquisa, 0);
SQL_DefinSQL_AbrirCursor(cPesqusa);
nAchou = 0;
Se (SQL_EOF(cPesquisa) = cFalso)
nAchou = 1;SQL_Destruir(cPesquisa);
- To NOT generate the error: Typing on SynEdit "ssa " (don't forget the space at the end), return a character with the LEFT ARROW and press SHIFT + SPACE (the result will be like the text below)
SQL_Criar(cPesquisa);
SQL_UsarSQLSenior2(cPesquisa, 1);
SQL_UsarAbrangencia(cPesquisa, 0);
SQL_DefinirComando(cPesquisa, "
");
SQL_AbrirCursor(cPesquisa);
nAchou = 0;
Se (SQL_EOF(cPesquisa) = cFalso)
nAchou = 1;
SQL_Destruir(cPesquisa);
- If we remove the spaces from line 04 "= ");" the text inside the SynAutoComplete, the error not occurs too.
Mantis conversion info:
- Mantis ID: 30187
- OS Build: 10
- Build: 52388
- Platform: windows
- Version: 1.7 (SVN)
- Monitored by: » llutti (Luciano Cargnelutti)