Skip to content

Commit

Permalink
CWM-927 disable vim for client's hidden editor on host
Browse files Browse the repository at this point in the history
to provide compatibility with Code With Me plugin
  • Loading branch information
vladimir-petrenko authored and AlexPl292 committed Dec 16, 2020
1 parent 964e87f commit f4fe03c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/com/maddyhome/idea/vim/helper/EditorHelper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

package com.maddyhome.idea.vim.helper

import com.intellij.codeWithMe.ClientId
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.editor.ex.util.EditorUtil
import com.intellij.openapi.fileEditor.ex.FileEditorManagerEx
Expand All @@ -39,6 +40,7 @@ val Editor.fileSize: Int
val Editor.isIdeaVimDisabledHere: Boolean
get() {
return disabledInDialog
|| (!ClientId.isCurrentlyUnderLocalId) // CWM-927
|| (!OptionsManager.ideavimsupport.contains("singleline") && isDatabaseCell())
|| (!OptionsManager.ideavimsupport.contains("singleline") && isOneLineMode)
}
Expand Down

0 comments on commit f4fe03c

Please sign in to comment.