From 2fe310256e82ec8c4c160ebc171fe18c8da06330 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Wed, 9 Sep 2020 17:08:29 +0200 Subject: Transcompile ..= operator to support old vims, fixes #542 --- scripts/build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/build') diff --git a/scripts/build b/scripts/build index 4a36bbac..69993374 100755 --- a/scripts/build +++ b/scripts/build @@ -175,7 +175,9 @@ def copy_file(package, src, dest) else output << "if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, '#{name}') == -1\n\n" end - IO.copy_stream(input, output) + contents = File.read(input) + contents.gsub!(' ..= ', ' .= ') + output << contents output << "\nendif\n" end end -- cgit v1.2.3