Skip to content
Snippets Groups Projects
Commit 864fc285 authored by Kostia Balytskyi's avatar Kostia Balytskyi
Browse files

contrib: make editmergeps able to work with Windows GUI editors

Using Start-Process -Wait makes it wait until the process finishes,
which is necesssary for Windows GUI applications. My short testing
also demonstrated that it does not hurt with command line vim.
parent d47d7d3b
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,7 @@
# or the user stops editing the file
while (($firstline -ne $nil) -and ($firstline -ne $previousline))
{
& "$ed" "+$firstline" "$file"
Start-Process -Wait $ed $linearg,$file
$previousline = $firstline
$lines = Get-Lines
$firstline = if ($lines.Length -gt 0) { $lines[0] } else { $nil }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment