aboutsummaryrefslogtreecommitdiffstats
path: root/bundle/prr-ui/plugin
diff options
context:
space:
mode:
authorTeddy Wing2023-11-29 21:47:47 +0100
committerTeddy Wing2023-11-30 00:05:23 +0100
commit0782a9709eab7b4930547f0e4095030b33f9e28c (patch)
tree85cb789c7ad105be90c8bcd9ed7a57c6c7b78e88 /bundle/prr-ui/plugin
parent55a482ccc2756d0c79aa4790dc061f6f5d61fccb (diff)
downloaddotvim-0782a9709eab7b4930547f0e4095030b33f9e28c.tar.bz2
prr-ui: Ensure file is saved before `PrrSubmit`
Guard against accidentally submitting a stale unsaved code review.
Diffstat (limited to 'bundle/prr-ui/plugin')
-rw-r--r--bundle/prr-ui/plugin/prr_ui.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundle/prr-ui/plugin/prr_ui.vim b/bundle/prr-ui/plugin/prr_ui.vim
index 615d06f..1aaf457 100644
--- a/bundle/prr-ui/plugin/prr_ui.vim
+++ b/bundle/prr-ui/plugin/prr_ui.vim
@@ -4,4 +4,4 @@ endif
let g:loaded_prr_ui = 1
command! PrrStart execute 'vsplit ' . system('prr-start --print')
-command! PrrSubmit !prr-submit
+command! PrrSubmit update | !prr-submit