It's unclear what should be expected.
“:write foo” is successful in a 'nofile' buffer and that's essentially what “:saveas foo” is doing, from a user perspective. In addition, it also "switches" you to that file. The implementation detail of just renaming the current buffer to the new filename is what seems to lead to this problem.
However, it could also be argued that the command should emit E382 since it's a nofile buffer.
If the use of :saveas is deemed acceptable, it seems like “:saveas foo” should do one of two things:
However, 1 would has user visible side effects and is a change in behavior.
2 appears at first blush to be easy to implement, but the trouble is that the alternate buffer isn't loaded until the user switches to it.
Any options set on it before then will be wiped out when it actually gets loaded, last I checked.
9.1.0242
Debian
No response
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Closed #11171 as completed via 500a1f9.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()