mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-06-04 20:46:29 +03:00
Hide signature help if cursor moves to a new line.
This commit is contained in:
@@ -134,6 +134,12 @@ void AutoCompletePlugin::onRegister( UICodeEditor* editor ) {
|
||||
editor->addEventListener( Event::OnCursorPosChange, [this, editor]( const Event* ) {
|
||||
if ( !mReplacing )
|
||||
resetSuggestions( editor );
|
||||
else if ( mSignatureHelpVisible && mSignatureHelpPosition.isValid() &&
|
||||
!editor->getDocument().getSelection().hasSelection() &&
|
||||
mSignatureHelpPosition.line() !=
|
||||
editor->getDocument().getSelection().end().line() ) {
|
||||
resetSignatureHelp();
|
||||
}
|
||||
} ) );
|
||||
|
||||
listeners.push_back( editor->addEventListener(
|
||||
|
||||
Reference in New Issue
Block a user