on main help sign in
fix(ui): lint: use consistent receiver names in EditorModel methods
commit1c968b8804acb3b5fe30fa1c1d4bfe13ce48fcc4 authorAyman Bagabas <ayman.bagabas@gmail.com> dateTue 28 Oct 2025, 17:57 (1 year ago) parent7d99762
1 file changed+6−6
internal/ui/model/editor.go+6−6
internal/ui/model/editor.go+6−6
@@ -124,19 +124,19 @@ func (m *EditorModel) Cursor() *tea.Cursor {
124124}
125125
126126// Blur implements Container.
127−func (c *EditorModel) Blur() tea.Cmd {
128− c.textarea.Blur()
127+func (m *EditorModel) Blur() tea.Cmd {
128+ m.textarea.Blur()
129129 return nil
130130}
131131
132132// Focus implements Container.
133−func (c *EditorModel) Focus() tea.Cmd {
134− return c.textarea.Focus()
133+func (m *EditorModel) Focus() tea.Cmd {
134+ return m.textarea.Focus()
135135}
136136
137137// Focused returns whether the editor is focused.
138−func (c *EditorModel) Focused() bool {
139− return c.textarea.Focused()
138+func (m *EditorModel) Focused() bool {
139+ return m.textarea.Focused()
140140}
141141
142142// SetSize sets the size of the editor.