From 7e6b0b46c5adb4ed6ccb0cd890ccc2367ec620a4 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Thu, 4 May 2017 23:06:21 +0200 Subject: move rtree from util.Prompt to cli.Query --- pkg/cli/query.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pkg/cli/query.go') diff --git a/pkg/cli/query.go b/pkg/cli/query.go index a81d153..d8602bc 100644 --- a/pkg/cli/query.go +++ b/pkg/cli/query.go @@ -49,8 +49,7 @@ func Query(prompt string, choices ...Choice) (Choice, int) { return Choice{}, -1 } - //disable line wrap during doQuery(); unexpected wrapping would confuse our - //cursor-moving code + //disable line wrap; unexpected wrapping would confuse our cursor-moving code os.Stdout.Write([]byte("\x1B[?7l")) defer os.Stdout.Write([]byte("\x1B[?7h")) -- cgit v1.3.1