equal
deleted
inserted
replaced
54 else |
54 else |
55 { |
55 { |
56 $linearg = "+$firstline" |
56 $linearg = "+$firstline" |
57 } |
57 } |
58 |
58 |
59 Start-Process -Wait $ed $linearg,$file |
59 Start-Process -Wait -NoNewWindow $ed $linearg,$file |
60 $previousline = $firstline |
60 $previousline = $firstline |
61 $lines = Get-Lines |
61 $lines = Get-Lines |
62 $firstline = if ($lines.Length -gt 0) { $lines[0] } else { $nil } |
62 $firstline = if ($lines.Length -gt 0) { $lines[0] } else { $nil } |
63 Write-Output "firstline is: $firstline, previousline is: $previousline" |
63 Write-Output "firstline is: $firstline, previousline is: $previousline" |
64 } |
64 } |