Skip to content

Commit ef1a2d9

Browse files
committed
🟢 rebased on origin/main for rc-release
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
1 parent 0a8f42a commit ef1a2d9

File tree

2 files changed

+1
-38
lines changed

2 files changed

+1
-38
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/lr
2+
mql
23
mqlr
34
dist
45
alpine-container.tar

cli/shell/model.go

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -341,44 +341,6 @@ func (m *shellModel) handleKeyMsg(msg tea.KeyMsg) (tea.Model, tea.Cmd) {
341341
m.wordRight()
342342
return m, nil
343343

344-
case "up":
345-
if len(m.history) == 0 {
346-
return m, nil
347-
}
348-
349-
m.historyIdx--
350-
351-
if m.historyIdx >= 0 && m.historyIdx <= len(m.history)-1 {
352-
m.input.SetValue(m.history[m.historyIdx])
353-
} else if m.historyIdx >= len(m.history) {
354-
m.historyIdx = len(m.history) - 1
355-
m.input.SetValue(m.history[m.historyIdx])
356-
} else {
357-
m.historyIdx = -1
358-
m.input.SetValue("")
359-
}
360-
361-
return m, nil
362-
363-
case "down":
364-
if len(m.history) == 0 {
365-
return m, nil
366-
}
367-
368-
m.historyIdx++
369-
370-
if m.historyIdx >= 0 && m.historyIdx <= len(m.history)-1 {
371-
m.input.SetValue(m.history[m.historyIdx])
372-
} else if m.historyIdx >= len(m.history) {
373-
m.historyIdx = len(m.history)
374-
m.input.SetValue("")
375-
} else {
376-
m.historyIdx = 0
377-
m.input.SetValue(m.history[m.historyIdx])
378-
}
379-
380-
return m, nil
381-
382344
case "ctrl+d":
383345
m.quitting = true
384346
return m, tea.Quit

0 commit comments

Comments
 (0)