Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CWM-927 disable vim for client's hidden editor on host #259

Merged
merged 1 commit into from
Dec 16, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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