Skip to content

Commit 7c6fe14

Browse files
committed
fix: initialize CheckModeValue to prevent undefined behavior
1 parent 32dfafc commit 7c6fe14

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/vim_state.ahk

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
__New(Vim){
33
this.Vim := Vim
44

5-
; CheckModeValue does not get set for compiled scripts.
5+
this.CheckModeValue := false
6+
; CheckModeValue set to true only for script mode
67
;@Ahk2Exe-IgnoreBegin
78
this.CheckModeValue := true
89
;@Ahk2Exe-IgnoreEnd

0 commit comments

Comments
 (0)