summaryrefslogtreecommitdiff
path: root/ui/ui.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/ui.go')
-rw-r--r--ui/ui.go13
1 files changed, 7 insertions, 6 deletions
diff --git a/ui/ui.go b/ui/ui.go
index 9926fe7..db1d8bd 100644
--- a/ui/ui.go
+++ b/ui/ui.go
@@ -112,6 +112,10 @@ func (ui *UI) GoToBufferNo(i int) {
}
}
+func (ui *UI) ShowBufferNumbers(enable bool) {
+ ui.bs.ShowBufferNumbers(enable)
+}
+
func (ui *UI) ScrollUp() {
ui.bs.ScrollUp(ui.bs.tlHeight / 2)
}
@@ -192,12 +196,9 @@ func (ui *UI) SetPrompt(prompt StyledString) {
ui.prompt = prompt
}
-func (ui *UI) InputIsCommand() bool {
- return ui.e.IsCommand()
-}
-
-func (ui *UI) InputLen() int {
- return ui.e.TextLen()
+// InputContent result must not be modified.
+func (ui *UI) InputContent() []rune {
+ return ui.e.Content()
}
func (ui *UI) InputRune(r rune) {