From f8badd922f4692308b33e15eff3720ceef2f9328 Mon Sep 17 00:00:00 2001 From: kyleochata Date: Mon, 23 Sep 2024 03:00:03 -0700 Subject: [PATCH] added GetChar method to Cursor model --- cursor/cursor.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cursor/cursor.go b/cursor/cursor.go index 1297422d4..335cf2413 100644 --- a/cursor/cursor.go +++ b/cursor/cursor.go @@ -209,6 +209,11 @@ func (m *Model) SetChar(char string) { m.char = char } +// GetChar retrieves the character under the cursor. +func (m Model) GetChar() string { + return m.char +} + // View displays the cursor. func (m Model) View() string { if m.Blink {