Fix high prio recommendations, add error / health screen
This commit is contained in:
@@ -32,11 +32,12 @@ func (m *App) startPREdit() tea.Cmd {
|
||||
m.editorMode == "vim",
|
||||
)
|
||||
m.prEditEditors[prEditBodyField].highlightMarkdown = true
|
||||
m.prEditOriginal = m.currentPRMetadata()
|
||||
m.restorePREditDraft()
|
||||
for index := range m.prEditEditors {
|
||||
m.prEditEditors[index].hardwareCursor = m.cursorOutput != nil
|
||||
m.prEditEditors[index].keys = m.keybindings
|
||||
}
|
||||
m.prEditOriginal = m.currentPRMetadata()
|
||||
m.prEditBranches = nil
|
||||
m.prEditBranchesLoading = false
|
||||
m.prEditBranchesError = ""
|
||||
@@ -206,7 +207,7 @@ func (m App) updatePREditInput(key tea.KeyMsg) (tea.Model, tea.Cmd) {
|
||||
}
|
||||
m.err = nil
|
||||
m.ensurePREditCursorVisible()
|
||||
return m, nil
|
||||
return m, m.queuePREditDraft()
|
||||
}
|
||||
|
||||
func (m App) prEditEditorWidth() int {
|
||||
|
||||
Reference in New Issue
Block a user