chore(lint): fix and suppress all soft lint issues; update directives

This commit is contained in:
Christian Rocha
2024-10-24 12:35:42 -04:00
parent 7525b8c853
commit 358a6c58c8
11 changed files with 46 additions and 42 deletions
+2 -2
View File
@@ -565,7 +565,7 @@ func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {
// Let's remember where the position of the cursor currently is so that if
// the cursor position changes, we can reset the blink.
oldPos := m.pos //nolint
oldPos := m.pos
switch msg := msg.(type) {
case tea.KeyMsg:
@@ -658,7 +658,7 @@ func (m Model) View() string {
pos := max(0, m.pos-m.offset)
v := styleText(m.echoTransform(string(value[:pos])))
if pos < len(value) {
if pos < len(value) { //nolint:nestif
char := m.echoTransform(string(value[pos]))
m.Cursor.SetChar(char)
v += m.Cursor.View() // cursor and text under it