* bug #12393 fixed - During completion replacment by common part of suggested words... 63/10863/2
authorSimon Marchetto <simon.marchetto@scilab-enterprises.com>
Fri, 15 Mar 2013 15:51:59 +0000 (16:51 +0100)
committerSylvestre Ledru <sylvestre.ledru@scilab-enterprises.com>
Sun, 17 Mar 2013 09:43:36 +0000 (10:43 +0100)
commit0199bc06488578d56ae329dc2d7eb2a4c3e633a8
treee9bffd6b3035730a5a7d702ac9938126c633e3bd
parent0ccfe58c2441c57b4d3859d49b3b7312cafb2541
* bug #12393 fixed - During completion replacment by common part of suggested words does not work

fix completion insert position: if line does not end by common part of suggested words, search last occurence of common part in line.
+ fix suggested word window: get window location only after common part completion is done

Change-Id: I9dbf6ebbc9c09ded22cbb6f76e060e93ddd74371
scilab/modules/completion/src/c/completeLine.c
scilab/modules/completion/tests/nonreg_tests/bug_12393.dia.ref [new file with mode: 0644]
scilab/modules/completion/tests/nonreg_tests/bug_12393.tst [new file with mode: 0644]
scilab/modules/completion/tests/unit_tests/completeline.dia.ref
scilab/modules/completion/tests/unit_tests/completeline.tst
scilab/modules/console/src/java/org/scilab/modules/console/CompletionAction.java
scilab/modules/string/src/c/stristr.c