Show More
@@ -46,7 +46,7 b' if (($ed -eq "vim") -or ($ed -eq "emacs"' | |||||
46 | # or the user stops editing the file |
|
46 | # or the user stops editing the file | |
47 | while (($firstline -ne $nil) -and ($firstline -ne $previousline)) |
|
47 | while (($firstline -ne $nil) -and ($firstline -ne $previousline)) | |
48 | { |
|
48 | { | |
49 | & "$ed" "+$firstline" "$file" |
|
49 | Start-Process -Wait $ed $linearg,$file | |
50 | $previousline = $firstline |
|
50 | $previousline = $firstline | |
51 | $lines = Get-Lines |
|
51 | $lines = Get-Lines | |
52 | $firstline = if ($lines.Length -gt 0) { $lines[0] } else { $nil } |
|
52 | $firstline = if ($lines.Length -gt 0) { $lines[0] } else { $nil } |
General Comments 0
You need to be logged in to leave comments.
Login now