summaryrefslogtreecommitdiff
path: root/src/shared_string.cc
diff options
context:
space:
mode:
authorJohannes Altmanninger <aclopte@gmail.com>2022-08-02 07:47:54 +0200
committerJohannes Altmanninger <aclopte@gmail.com>2022-10-16 19:49:43 +0200
commit91c43c0f671fc376089c121e8d34a30869472fd9 (patch)
tree84363061d1b530666559788441819bad63c1306a /src/shared_string.cc
parent360a6847be5c79a57da73c15efbbb954cd8ba749 (diff)
Allow to put switches after :write's positional argument
After a failed :write file-that-already-exists a user might want to type ":<up> -f<ret>" to force-overwrite. This doesn't work because :write's switches must precede the filename. It's dual :edit does not have this restriction. Some commands require switches to precede positional arguments for a good reason; for example because positional arguments might start with "-" (like ":echo 1 - 1"). There seems to be no reason for the :write restriction, so remove it. Same for :enter-user-mode. Thanks to alexherbo2 for reporting.
Diffstat (limited to 'src/shared_string.cc')
0 files changed, 0 insertions, 0 deletions