mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-25 02:10:26 +00:00
Display number of lines in the JumpLine prompt
This commit is contained in:
parent
487b36f48f
commit
cc5855d07b
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue