diff --git a/platform/lang-impl/src/com/intellij/refactoring/rename/inplace/TemplateInlayUtil.kt b/platform/lang-impl/src/com/intellij/refactoring/rename/inplace/TemplateInlayUtil.kt index 8ffb8ef92eaf..a4a7ea5b987f 100644 --- a/platform/lang-impl/src/com/intellij/refactoring/rename/inplace/TemplateInlayUtil.kt +++ b/platform/lang-impl/src/com/intellij/refactoring/rename/inplace/TemplateInlayUtil.kt @@ -98,7 +98,7 @@ object TemplateInlayUtil { .createPopup() DumbAwareAction.create { popup.cancel() - templateState.gotoEnd(false) + templateState.nextTab() logStatisticsOnHide.invoke() }.registerCustomShortcutSet(KeymapUtil.getActiveKeymapShortcuts(IdeActions.ACTION_EDITOR_ENTER), panel) popup.showInBestPositionFor(editor)