Timeline for How can I test the result of execute saveas?
Current License: CC BY-SA 4.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 22 at 15:38 | comment | added | Big McLargeHuge | You're right! Nice deduction. I forgot that wasn't the default behavior. | |
Nov 17 at 19:40 | history | edited | Vivian De Smedt | CC BY-SA 4.0 |
added 68 characters in body
|
Nov 17 at 19:36 | comment | added | Vivian De Smedt |
Now I can reproduce your problem. I suspect you have set the confirm option (:set confirm ).
|
|
Nov 17 at 19:30 | comment | added | Vivian De Smedt |
Thanks for the procedure for reproducing your problem. I still fail to get prompted to overwrite the target file name. Can you reproduce the problem by calling nvim -u None b.txt ?
|
|
Nov 17 at 16:08 | comment | added | Big McLargeHuge |
I'm using Neovim v0.10.1. Steps to repro: 1. echo a > a.txt 2. echo b > b.txt 3. nvim b.txt 4. :call Rename('b.txt', 'a.txt') 5. When prompted to overwrite a.txt, answer "No" 6. b.txt is deleted anyways.
|
|
Nov 16 at 7:08 | comment | added | Vivian De Smedt | I have corrected small errors. I have tested the code on Vim 7.0 and on Neovim 0.10 and it seems to work fine. In particular I'm not prompted to override the file. | |
Nov 16 at 6:59 | history | edited | Vivian De Smedt | CC BY-SA 4.0 |
deleted 2 characters in body
|
Nov 16 at 4:23 | comment | added | Vivian De Smedt | It works on my end :-/ Could you tell me which version of Vim you are using? | |
Nov 15 at 23:13 | comment | added | Big McLargeHuge |
Doesn't seem to work. I think if the file exists, and :saveas prompts you to overwrite, and you answer "No", there's no error.
|
|
Nov 15 at 21:32 | history | answered | Vivian De Smedt | CC BY-SA 4.0 |