mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Don't invoke PythonEnterHandler.postProcessEnter() on non-Python files
This commit is contained in:
@@ -358,6 +358,9 @@ public class PythonEnterHandler extends EnterHandlerDelegateAdapter {
|
||||
public Result postProcessEnter(@NotNull PsiFile file,
|
||||
@NotNull Editor editor,
|
||||
@NotNull DataContext dataContext) {
|
||||
if (!(file instanceof PyFile)) {
|
||||
return Result.Continue;
|
||||
}
|
||||
if (myPostprocessShift > 0) {
|
||||
editor.getCaretModel().moveCaretRelatively(myPostprocessShift, 0, false, false, false);
|
||||
myPostprocessShift = 0;
|
||||
|
||||
Reference in New Issue
Block a user