Skip to content

Commit

Permalink
fix incorrect tab action works
Browse files Browse the repository at this point in the history
  • Loading branch information
reymondzzzz committed Jan 9, 2025
1 parent a053152 commit 8993644
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class TabPressedAction : EditorAction(InsertInlineCompletionHandler()), ActionTo
val provider = ModeProvider.getOrCreateModeProvider(editor)
if (provider.isInCompletionMode()) {
val ctx = InlineCompletionContext.getOrNull(editor) ?: return false
if (ctx.state.elements.size != 1) return false
if (ctx.state.elements.isEmpty()) return false
val elem = ctx.state.elements.first()
val isMultiline = EditorRefactLastCompletionIsMultilineKey[editor]
if (isMultiline && elem is InlineCompletionGrayTextElementCustom.Presentable)
Expand Down

0 comments on commit 8993644

Please sign in to comment.