lambdalisue/vim-suda

Cannot retry inputting password

Open

#34 geöffnet am 10. Sept. 2020

Auf GitHub ansehen
 (6 Kommentare) (5 Reaktionen) (0 zugewiesene Personen)Vim Script (28 Forks)github user discovery
bughelp wanted

Repository-Metriken

Stars
 (843 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

  1. Create a file owned by root: sudo touch foo.txt
  2. Open an another terminal (to end the sudo's session)
  3. Open vim
  4. :Suda foo.txt
  5. Edit something.
  6. :w
  7. Input an incorrect password.
  8. Error occurs without retry.
Password: ***Error detected while processing BufWriteCmd Autocommands for "suda://*"..function suda#BufWriteCmd[14]..BufWriteCmd Autocommands for "suda://*"..function suda#BufWriteCmd[3]..suda#write:
line   33:
E605: Exception not caught: Sorry, try again.^@Sorry, try again.^@^@sudo: no password was provided^@sudo: 2 incorrect password attempts^@

At this time, suda.vim inputs incorrect password severary. (See the error message.)

Contributor Guide