Skip to content

Commit

Permalink
fix: fix multiline in MsgBox
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmdnk committed Sep 25, 2024
1 parent ecee981 commit 6b532e1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
6 changes: 4 additions & 2 deletions lib/vim_check.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@
win_class := WinGetClass("ahk_pid " process)
title := WinGetTitle("ahk_pid " process)
if(this.Vim.IsVimGroup()){
MsgBox("(
MsgBox("
(
Supported
Process name: %name%
Class : %win_class%
Title : %title%
)", "Vim Ahk", "Iconi")
}else{
MsgBox("(
MsgBox("
(
Not supported
Process name: %name%
Class : %win_class%
Expand Down
9 changes: 6 additions & 3 deletions lib/vim_state.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
this.SetTooltip(this.Mode "`r`ng=" this.g "`r`nn=" this.n "`r`nLineCopy=" this.LineCopy, 4)
}
if(verbose >= 4){
MsgBox("(
MsgBox("
(
Mode : %this.Mode%
Vim_g : %this.g%
Vim_n : %this.n%
Expand Down Expand Up @@ -153,15 +154,17 @@
try{
InOrBlank := (not fullMatch) ? "in " : ""
if not this.HasValue(this.PossibleVimModes, mode, fullMatch){
Throw ValueError("Invalid mode specified", -2, "(
Throw ValueError("Invalid mode specified", -2, "
(
'%Mode%' is not %InOrBlank%a valid mode as defined by the VimPossibleVimModes
array at the top of vim_state.ahk. This may be a typo.
Fix this error by using an existing mode,
or adding your mode to the array.
)")
}
}catch ValueError as e{
MsgBox("(
MsgBox("
(
Warning: %e.Message%
%e.Extra%

Expand Down

0 comments on commit 6b532e1

Please sign in to comment.