On Thu, 3 Dec 2020, Sven Schreiber wrote:
> Hi, the following behavior has annoyed me for a long time already, but
> it was kind of hard to describe. Now let me try with a very complete and
> small example [...]
Sven then gave a clear account of some bizarre behaviour when
auto-completion is turned on in the gretl script editor, and gretl
is built using version 2.0 of the gtksourceview library (which is
the case for our Windows and macOS packages). I could reproduce the
bug on Linux.
This should now be fixed in current git and shapshots. I backported
an update for the completion-suggestion mechanism from
gtksourceview-3.0 and I'm no longer seeing the problem Sven noted
(tested on Linux and Windows, but I've still to test on macOS).
If anyone wants to try this out:
* Auto-completion is not enabled by default, but you can turn it on
under /Tools/Preferences/General, Editor tab. You can also access
this tab via the Preferences button on the toolbar in the script
editor window.
* If a suggested completion is offered and you want to ignore it,
just keep typing.
* If a suggestion appears and you wish to accept it, hit the Tab
key.
* If multiple suggestions appear and you wish to accept one other
than the first, use down-arrow then Tab.
At present there are two sources of suggestions: (a) words typed
previously in the editor and (b) names of built-in gretl functions.
Allin