-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ed: w! command should not update saved filename (#924)
* I found that the "w !CMD" case had the same problem as "r !CMD"; avoid updating $RememberedFilename when writing lines from buffer to an external command thru a pipe * Now init_pipe() takes an extra WriteFlag argument so edWrite() can use it too * For consistency add illegal_file() check in edWrite() before output file is opened * Also add quotewords() in edPipe() to allow system() to be passed an argument list * test1: "1,2w !rev" --> pipe buffer lines 1-2 into rev command * test2: "$w .." --> illegal_file() == TRUE * test3: "!cc secret.c" --> build secret project file
- Loading branch information
Showing
1 changed file
with
20 additions
and
10 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