From 04993a0e510d861737d2947b60b5b56b8f1f1b10 Mon Sep 17 00:00:00 2001 From: TheK4n Date: Wed, 11 Jan 2023 18:46:07 +0300 Subject: [PATCH] fix(vim_askpass_helper): if passwords contains spaces it returns only first piece --- functions/vim_askpass_helper | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/vim_askpass_helper b/functions/vim_askpass_helper index d29648e..97d50eb 100755 --- a/functions/vim_askpass_helper +++ b/functions/vim_askpass_helper @@ -1,2 +1,2 @@ #!/usr/bin/env bash -echo -e "SETTITLE vim\nOPTION default-prompt=[sudo] password for $USER:\nGETPIN" | pinentry-qt --display :0 2>/dev/null | grep ^D | cut -d" " -f2 +echo -e "SETTITLE vim\nOPTION default-prompt=[sudo] password for $USER:\nGETPIN" | pinentry-qt --display :0 2>/dev/null | grep ^D | cut -d" " -f2-