Subject: | Wrong vim Error Code Returned |
If the vim command fails, with a non-zero exit code, then this is reported incorrectly. For example, an exit code of 1 (as per the bug in ticket #11555) is reported as 256.
This should fix the problem -- just after the waitpid call (line 336), replace these 2 lines:
$? == 0
or die "$0: $prog returned an error code of '$?'.\n";
with these 2:
my $error = $? >> 8;
die "$0: $prog returned an error code of '$error'.\n" if $error;
Smylers