Commit 7ddb3f4 #8 rpkg error when EDITOR="gvim -f"

1 file Authored and Committed by clime a month ago
1 @@ -71,7 +71,7 @@
2       tmp_f = tempfile.NamedTemporaryFile('w', delete=False)
3       tmp_f.write(text)
4       tmp_f.close()
5 -     subprocess.check_call([editor, tmp_f.name])
6 +     subprocess.check_call(editor.split()+[tmp_f.name])
7       tmp_f = open(tmp_f.name, 'r')
8       result = tmp_f.read()
9       tmp_f.close()