From 3d1e16c4d2a69e1cafb0f6859b982f66e4c9a26e Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Tue, 18 Jun 2019 20:26:52 +0200 Subject: [PATCH] ui/text: unexport Editor.Command Signed-off-by: Elias Naur --- ui/text/editor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/text/editor.go b/ui/text/editor.go index 0087b14f..96f9a03d 100644 --- a/ui/text/editor.go +++ b/ui/text/editor.go @@ -99,7 +99,7 @@ func (e *Editor) Update(c *ui.Config, q input.Events) { case key.Focus: e.focused = ke.Focus case key.Chord: - if e.Command(ke) { + if e.command(ke) { stop = true scrollTo = true } @@ -495,7 +495,7 @@ func (e *Editor) scrollToCaret() { } } -func (e *Editor) Command(k key.Chord) bool { +func (e *Editor) command(k key.Chord) bool { if !e.focused { return false }