mirror of
https://github.com/occivink/kakoune-sudo-write
synced 2025-04-02 22:40:36 +02:00
Use more idiomatic 'fail'
This commit is contained in:
parent
5d30d6c6cc
commit
76b45b9302
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
[kakoune](http://kakoune.org) plugin to save files that you do not have write permissions for. Uses `sudo` and preserves file ownership and read-write attributes.
|
[kakoune](http://kakoune.org) plugin to save files that you do not have write permissions for. Uses `sudo` and preserves file ownership and read-write attributes.
|
||||||
|
|
||||||
## Install
|
## Setup
|
||||||
|
|
||||||
Add `sudo-write.kak` to your autoload dir: `~/.config/kak/autoload/`, or source it manually.
|
Add `sudo-write.kak` to your autoload dir: `~/.config/kak/autoload/`, or source it manually.
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ define-command -hidden -params 1 cache-password %{
|
|||||||
delete-buffer
|
delete-buffer
|
||||||
} catch %{
|
} catch %{
|
||||||
delete-buffer
|
delete-buffer
|
||||||
throw
|
fail
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user