You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2018/12/16 19:29:28 UTC

[cloudstack-cloudmonkey] branch readline-prompt updated: fix minor bug

This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch readline-prompt
in repository https://gitbox.apache.org/repos/asf/cloudstack-cloudmonkey.git


The following commit(s) were added to refs/heads/readline-prompt by this push:
     new 0a2abb1  fix minor bug
0a2abb1 is described below

commit 0a2abb192034bb675162a80cbb499427e771ef83
Author: Rohit Yadav <ro...@apache.org>
AuthorDate: Mon Dec 17 00:59:09 2018 +0530

    fix minor bug
    
    Signed-off-by: Rohit Yadav <ro...@apache.org>
---
 vendor/github.com/chzyer/readline/complete.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vendor/github.com/chzyer/readline/complete.go b/vendor/github.com/chzyer/readline/complete.go
index 7a6b73a..9d19fa5 100644
--- a/vendor/github.com/chzyer/readline/complete.go
+++ b/vendor/github.com/chzyer/readline/complete.go
@@ -47,7 +47,7 @@ func newOpCompleter(w io.Writer, op *Operation, width int) *opCompleter {
 }
 
 func (o *opCompleter) writeRunes(candidate []rune) {
-	lastIndex := 0
+	lastIndex := len(candidate)
 	for idx, r := range candidate {
 		if r == '(' {
 			lastIndex = idx