From 2ef54854dc5965cf4ca8fca782313087e0dbdacd Mon Sep 17 00:00:00 2001 From: Christophe Rhodes Date: Fri, 13 Jun 2014 19:49:03 +0100 Subject: don't add a space when completing completing payees with ledger-magic-tab would add a space when there was only one possible completion. That space, in ledger's file format, would always need to be deleted again it might be helpful when completing accounts to add two spaces, but the current completion code organization can't (easily) distinguish between payee and account completion. Adding one space is harmful to account completion too, in that `ledger-account.*regex' parse accounts by looking for two spaces, and treat an account name ending with a single space before the newline as having the space as part of the account name. --- lisp/ledger-complete.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/ledger-complete.el b/lisp/ledger-complete.el index 64ceb3ca..77ae61e7 100644 --- a/lisp/ledger-complete.el +++ b/lisp/ledger-complete.el @@ -254,7 +254,8 @@ ledger-magic-tab would cycle properly" (pcomplete-autolist pcomplete-autolist) (pcomplete-suffix-list pcomplete-suffix-list) (completions (pcomplete-completions)) - (result (pcomplete-do-complete pcomplete-stub completions))) + (result (pcomplete-do-complete pcomplete-stub completions)) + (pcomplete-termination-string "")) (and result (not (eq (car result) 'listed)) (cdr result) -- cgit v1.2.3