1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-06-21 09:38:57 +02:00

Use the read action for neovim tests in other place

This commit is contained in:
Alex Plate 2025-02-21 13:33:53 +02:00
parent 58de834832
commit 45d92c1981
No known key found for this signature in database
GPG Key ID: 0B97153C8FFEC09F

View File

@ -159,9 +159,11 @@ object NeovimTesting {
neovimTestsCounter++ neovimTestsCounter++
} }
val vimCoords = getCaret() val vimCoords = getCaret()
ApplicationManager.getApplication().runReadAction {
val resultVimCoords = CharacterPosition.atCaret(editor).toVimCoords() val resultVimCoords = CharacterPosition.atCaret(editor).toVimCoords()
assertEquals(vimCoords.toString(), resultVimCoords.toString()) assertEquals(vimCoords.toString(), resultVimCoords.toString())
} }
}
private fun assertText(editor: Editor) { private fun assertText(editor: Editor) {
val neovimContent = getText() val neovimContent = getText()