Soft Patch Panel
 help / color / mirror / Atom feed
* [spp] [PATCH] controller: fix misc bug of compl for pri command
@ 2019-02-10  2:45 ogawa.yasufumi
  0 siblings, 0 replies; only message in thread
From: ogawa.yasufumi @ 2019-02-10  2:45 UTC (permalink / raw)
  To: spp, ferruh.yigit, ogawa.yasufumi

From: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>

This patch is to fix bug of `pri` to not complete if spaces are not
after `pri;`.

Signed-off-by: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>
---
 src/controller/shell.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/controller/shell.py b/src/controller/shell.py
index f1381b7..163fcf9 100644
--- a/src/controller/shell.py
+++ b/src/controller/shell.py
@@ -331,6 +331,7 @@ class Shell(cmd.Cmd, object):
     def complete_pri(self, text, line, begidx, endidx):
         """Completion for primary process commands."""
 
+        line = re.sub(r';\s*', "; ", line)
         line = re.sub(r'\s+', " ", line)
         return self.primary.complete(
                 text, line, begidx, endidx,
-- 
2.7.4

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-02-10  2:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-10  2:45 [spp] [PATCH] controller: fix misc bug of compl for pri command ogawa.yasufumi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).