From 5ab708303597af029235cbf8358055138c48f880 Mon Sep 17 00:00:00 2001 From: sammy-ette Date: Sun, 15 Jun 2025 15:22:58 -0400 Subject: [PATCH] fix: reference of old Instance type name --- golibs/readline/editor_plan9.go | 3 ++- golibs/readline/editor_windows.go | 2 +- golibs/readline/hint.go | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/golibs/readline/editor_plan9.go b/golibs/readline/editor_plan9.go index e6789f15..c1ab1e9d 100644 --- a/golibs/readline/editor_plan9.go +++ b/golibs/readline/editor_plan9.go @@ -1,9 +1,10 @@ +//go:build plan9 // +build plan9 package readline import "errors" -func (rl *Instance) launchEditor(multiline []rune) ([]rune, error) { +func (rl *Readline) launchEditor(multiline []rune) ([]rune, error) { return rl.line, errors.New("Not currently supported on Plan 9") } diff --git a/golibs/readline/editor_windows.go b/golibs/readline/editor_windows.go index c1972dde..a5530e14 100644 --- a/golibs/readline/editor_windows.go +++ b/golibs/readline/editor_windows.go @@ -5,6 +5,6 @@ package readline import "errors" // StartEditorWithBuffer - Not implemented on Windows platforms. -func (rl *Instance) StartEditorWithBuffer(multiline []rune, filename string) ([]rune, error) { +func (rl *Readline) StartEditorWithBuffer(multiline []rune, filename string) ([]rune, error) { return rl.line, errors.New("Not currently supported on Windows") } diff --git a/golibs/readline/hint.go b/golibs/readline/hint.go index e7810783..2dc7a29d 100644 --- a/golibs/readline/hint.go +++ b/golibs/readline/hint.go @@ -5,7 +5,7 @@ import "regexp" // SetHintText - a nasty function to force writing a new hint text. It does not update helpers, it just renders // them, so the hint will survive until the helpers (thus including the hint) will be updated/recomputed. /* -func (rl *Instance) SetHintText(s string) { +func (rl *Readline) SetHintText(s string) { rl.hintText = []rune(s) rl.renderHelpers() }