on main help sign in
fix(ui): lint: use consistent receiver names in EditorModel methods
1c968b8Ayman Bagabas
internal/ui/model/editor.go+6−6
@@ -124,19 +124,19 @@ func (m *EditorModel) Cursor() *tea.Cursor {
124}
124}
125
125
126// Blur implements Container.
126// Blur implements Container.
127−func (c *EditorModel) Blur() tea.Cmd {
127+func (m *EditorModel) Blur() tea.Cmd {
128− c.textarea.Blur()
128+ m.textarea.Blur()
129 return nil
129 return nil
130}
130}
131
131
132// Focus implements Container.
132// Focus implements Container.
133−func (c *EditorModel) Focus() tea.Cmd {
133+func (m *EditorModel) Focus() tea.Cmd {
134− return c.textarea.Focus()
134+ return m.textarea.Focus()
135}
135}
136
136
137// Focused returns whether the editor is focused.
137// Focused returns whether the editor is focused.
138−func (c *EditorModel) Focused() bool {
138+func (m *EditorModel) Focused() bool {
139− return c.textarea.Focused()
139+ return m.textarea.Focused()
140}
140}
141
141
142// SetSize sets the size of the editor.
142// SetSize sets the size of the editor.