Skip to content

Commit

Permalink
Merge pull request #144 from Banaanae/fix-issue-141
Browse files Browse the repository at this point in the history
Fix #141
  • Loading branch information
Banaanae authored Mar 13, 2024
2 parents bfd9951 + 368c021 commit 2198695
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions QuickConvertorV2_scintilla.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,11 @@ CompVscV2E(*)
}
Edit_Change(*)
{
GuiCtrlObj := MyGui.FocusedCtrl
try {
GuiCtrlObj := MyGui.FocusedCtrl
} Catch {
GuiCtrlObj := ""
}
if IsObject(GuiCtrlObj){
CurrentCol := EditGetCurrentCol(GuiCtrlObj)
CurrentLine := EditGetCurrentLine(GuiCtrlObj)
Expand Down Expand Up @@ -694,7 +698,7 @@ ButtonValidateConversion.OnEvent("Click", ButtonGenerateTest)
; Call Gui_Size whenever the window is resized:
MyGui.OnEvent("Size", Gui_Size)

; MyGui.OnEvent("Close", (*) => ExitApp())
MyGui.OnEvent("Close", MyExit)
; MyGui.OnEvent("Escape", (*) => ExitApp())

FileMenu := Menu()
Expand Down Expand Up @@ -1191,6 +1195,7 @@ ViewV2E(*)
;*** HOTKEYS ***
;***************
Esc:: ;Exit application - Using either <Esc> Hotkey or Goto("MyExit")
MyExit(*)
{
MyExit:
;WRITE BACK VARIABLES SO THAT DEFAULTS ARE SAVED TO INI
Expand Down
2 changes: 1 addition & 1 deletion lib/scintilla.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ class Scintilla extends Gui.Custom {
If (this.AutoSizeNumberMargin)
this.MarginWidth(0, 33, scn) ; number margin 0, with default style 33

If (this.CustomSyntaxHighlighting) {
If (this.CustomSyntaxHighlighting && WinExist("Quick Convertor V2")) {

data := this.scn_data(scn) ; prep data for DLL calls
; wordList := this.makeWordLists()
Expand Down

0 comments on commit 2198695

Please sign in to comment.