# HG changeset patch # User Kostia Balytskyi # Date 1496149351 25200 # Node ID 4daf5c18055adc4efe0734bc4a90e2432aec17b4 # Parent 4b9b87930cb3ba73d2e396113de8511347117a69 contrib: make editmergeps use -NoNewWindow option in Start-Process cmdlet Running 'Start-Process -Wait "vim" "+10" "filename"' from PowerShell actually spawns a separate cmd window to run vim in. This looks ugly and in most cases not what user wants. During my initial testing I was using the Cmder app, which made me not notice this (it captures new windows as new tabs). diff -r 4b9b87930cb3 -r 4daf5c18055a contrib/editmergeps.ps1 --- a/contrib/editmergeps.ps1 Tue May 30 05:56:48 2017 -0700 +++ b/contrib/editmergeps.ps1 Tue May 30 06:02:31 2017 -0700 @@ -56,7 +56,7 @@ $linearg = "+$firstline" } - Start-Process -Wait $ed $linearg,$file + Start-Process -Wait -NoNewWindow $ed $linearg,$file $previousline = $firstline $lines = Get-Lines $firstline = if ($lines.Length -gt 0) { $lines[0] } else { $nil }