@@ -85,7 +85,7 @@ export async function onInsertText(options: OnInsertTextParams): Promise<void> {
8585 const charOverride = charOverrides . get ( options . data ) ;
8686 if (
8787 charOverride !== undefined &&
88- TestWords . words . getCurrent ( ) [ TestInput . input . current . length ] !==
88+ TestWords . words . getCurrentText ( ) [ TestInput . input . current . length ] !==
8989 options . data
9090 ) {
9191 // replace the data with the override
@@ -101,7 +101,7 @@ export async function onInsertText(options: OnInsertTextParams): Promise<void> {
101101
102102 // input and target word
103103 const testInput = TestInput . input . current ;
104- const currentWord = TestWords . words . getCurrent ( ) ;
104+ const currentWord = TestWords . words . getCurrentText ( ) ;
105105
106106 // if the character is visually equal, replace it with the target character
107107 // this ensures all future equivalence checks work correctly
@@ -151,7 +151,7 @@ export async function onInsertText(options: OnInsertTextParams): Promise<void> {
151151 // word navigation check
152152 const noSpaceForce =
153153 isFunboxActiveWithProperty ( "nospace" ) &&
154- ( testInput + data ) . length === TestWords . words . getCurrent ( ) . length ;
154+ ( testInput + data ) . length === TestWords . words . getCurrentText ( ) . length ;
155155 const shouldGoToNextWord =
156156 ( ( charIsSpace || charIsNewline ) && ! shouldInsertSpace ) || noSpaceForce ;
157157
@@ -169,7 +169,7 @@ export async function onInsertText(options: OnInsertTextParams): Promise<void> {
169169 TestInput . pushKeypressWord ( wordIndex ) ;
170170 if ( ! correct ) {
171171 TestInput . incrementKeypressErrors ( ) ;
172- TestInput . pushMissedWord ( TestWords . words . getCurrent ( ) ) ;
172+ TestInput . pushMissedWord ( TestWords . words . getCurrentText ( ) ) ;
173173 }
174174 if ( Config . keymapMode === "react" ) {
175175 flash ( data , correct ) ;
@@ -236,7 +236,7 @@ export async function onInsertText(options: OnInsertTextParams): Promise<void> {
236236 */
237237
238238 //this COULD be the next word because we are awaiting goToNextWord
239- const nextWord = TestWords . words . getCurrent ( ) ;
239+ const nextWord = TestWords . words . getCurrentText ( ) ;
240240 const doesNextWordHaveTab = / ^ \t + / . test ( nextWord ) ;
241241 const isCurrentCharTab = nextWord [ TestInput . input . current . length ] === "\t" ;
242242
0 commit comments