[spp] [PATCH] controller: fix misc bug of compl for pri command

ogawa.yasufumi at lab.ntt.co.jp ogawa.yasufumi at lab.ntt.co.jp
Sun Feb 10 03:45:34 CET 2019


From: Yasufumi Ogawa <ogawa.yasufumi at 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 at 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



More information about the spp mailing list