From cc5855d07bf750f4fb802b0ac25eb208d153ad20 Mon Sep 17 00:00:00 2001 From: Yannick Armand Date: Tue, 1 Aug 2017 16:41:57 +0200 Subject: [PATCH] Display number of lines in the JumpLine prompt --- cmd/micro/actions.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/micro/actions.go b/cmd/micro/actions.go index 40ef8a03..bf973043 100644 --- a/cmd/micro/actions.go +++ b/cmd/micro/actions.go @@ -1,6 +1,7 @@ package main import ( + "fmt" "os" "strconv" "strings" @@ -1479,7 +1480,8 @@ func (v *View) JumpLine(usePlugin bool) bool { } // Prompt for line number - linestring, canceled := messenger.Prompt("Jump to line # ", "", "LineNumber", NoCompletion) + message := fmt.Sprintf("Jump to line (1 - %v) # ", v.Buf.NumLines) + linestring, canceled := messenger.Prompt(message, "", "LineNumber", NoCompletion) if canceled { return false }