Skip to content

Commit

Permalink
Fix newline
Browse files Browse the repository at this point in the history
  • Loading branch information
sago35 committed Dec 28, 2018
1 parent eff2f16 commit 409cd93
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugconf/plugconf.go
Original file line number Diff line number Diff line change
Expand Up @@ -685,12 +685,14 @@ endfunction
}

if vimrcPath != "" || gvimrcPath != "" {
buf.WriteString("\n\n")
buf.WriteString("\n")
if vimrcPath != "" {
buf.WriteString("\n")
vimrcPath = strings.Replace(vimrcPath, "'", "''", -1)
buf.WriteString("let $MYVIMRC = '" + vimrcPath + "'")
}
if gvimrcPath != "" {
buf.WriteString("\n")
gvimrcPath = strings.Replace(gvimrcPath, "'", "''", -1)
buf.WriteString("let $MYGVIMRC = '" + gvimrcPath + "'")
}
Expand Down

0 comments on commit 409cd93

Please sign in to comment.