Mercurial > hg > octave-nkf
changeset 18551:0f3bc7ccb875 gui-release
update the completion list of the editor while typing
* file-editor-tab.cc (constructor): disable removing the list at start;
(handle_cursor_moved): show new auto completion list when list is shown
author | Torsten <ttl@justmail.de> |
---|---|
date | Tue, 18 Feb 2014 07:33:45 +0100 |
parents | 3a509de8e791 |
children | ca65b05b9a8a |
files | libgui/src/m-editor/file-editor-tab.cc |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-tab.cc +++ b/libgui/src/m-editor/file-editor-tab.cc @@ -139,7 +139,7 @@ _edit_area->setUtf8 (true); // auto completion - _edit_area->setAutoCompletionSource (QsciScintilla::AcsAll); + _edit_area->SendScintilla (QsciScintillaBase::SCI_AUTOCSETCANCELATSTART, false); QVBoxLayout *edit_area_layout = new QVBoxLayout (); edit_area_layout->addWidget (_edit_area); @@ -1600,6 +1600,9 @@ void file_editor_tab::handle_cursor_moved (int line, int col) { + if (_edit_area->SendScintilla (QsciScintillaBase::SCI_AUTOCACTIVE)) + show_auto_completion (this); + _row_indicator->setNum (line+1); _col_indicator->setNum (col+1); }