Skip to content

Commit

Permalink
win32: Don't use $0
Browse files Browse the repository at this point in the history
Fix wrong usage of $0 after 8.0.1232.  $0 is reserved for the install
directory.
  • Loading branch information
k-takata committed Jan 13, 2018
1 parent 2c71f5b commit 415e0c6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions nsis/gvim.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -480,14 +480,12 @@ Function SetCustom
# Display the InstallOptions dialog

# Check if a _vimrc should be created
SectionGetFlags ${sec_vimrc_id} $0
IntOp $0 $0 & 1
StrCmp $0 "1" +2 0
SectionGetFlags ${sec_vimrc_id} $3
IntOp $3 $3 & 1
StrCmp $3 "1" +2 0
Abort

Push $3
InstallOptions::dialog "$PLUGINSDIR\vimrc.ini"
Pop $3
InstallOptions::dialog "$PLUGINSDIR\vimrc.ini"
Pop $3
FunctionEnd

Expand Down

0 comments on commit 415e0c6

Please sign in to comment.