Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better DLL detection, synchronous command execution
* Added a libversion() function to the DLL which is used by the Vim script to verify that the DLL exists & can be loaded and that there isn't a version mismatch between the Vim script and the DLL. * Added the option of waiting for the external command to finish by removing execute() from the DLL and adding execute_synchronous() as well as execute_asynchronous(). The Vim script still contains the single function xolox#shell#execute() however it used to take printf()-style variable arguments and now always requires two arguments: the command to execute and whether to wait for the command to finish, where 1 = yes and 0 = no. * Because the Vim script already contained code to build command-lines but that functionality was removed from the xolox#shell#execute() function I've decided to make the function used to build command-lines public. This way there's no loss in functionality, only ease of use.
- Loading branch information
Showing
2 changed files
with
86 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters