Skip to content

Commit ea4152e

Browse files
committed
PythonCodeCompletion: lexical state check does not work on the most recently added char, so check one char further back (may have unwanted side-effects but it will do for now)
1 parent a749f13 commit ea4152e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎PythonCodeCompletion/PythonCodeCompletion.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,8 +578,8 @@ void PythonCodeCompletion::EditorEventHook(cbEditor* editor, wxScintillaEvent& e
578578
if ( (autoCC && !control->AutoCompActive()) // not already active autocompletion
579579
|| (ch == _T('.')))
580580
{
581-
Manager::Get()->GetLogManager()->Log(_("PYCC: Checking lexical state"));
582-
int style = control->GetStyleAt(pos);
581+
Manager::Get()->GetLogManager()->Log(_("PYCC: Checking lexical state..."));
582+
int style = control->GetStyleAt(pos-2);
583583
if ( style != wxSCI_P_DEFAULT
584584
&& style != wxSCI_P_CLASSNAME
585585
&& style != wxSCI_P_DEFNAME

‎PythonCodeCompletion/python/stdlib_parser.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import sys
2-
import pkgutil
1+
'#import sys whyf'
2+
#import pkgutil fdthis is a sick fucking joke
33
import imp
44
import os,os.path
55
import types

0 commit comments

Comments
 (0)