1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-05-30 04:34:08 +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,8 +159,10 @@ object NeovimTesting {
neovimTestsCounter++ neovimTestsCounter++
} }
val vimCoords = getCaret() val vimCoords = getCaret()
val resultVimCoords = CharacterPosition.atCaret(editor).toVimCoords() ApplicationManager.getApplication().runReadAction {
assertEquals(vimCoords.toString(), resultVimCoords.toString()) val resultVimCoords = CharacterPosition.atCaret(editor).toVimCoords()
assertEquals(vimCoords.toString(), resultVimCoords.toString())
}
} }
private fun assertText(editor: Editor) { private fun assertText(editor: Editor) {