xonecas.io
62159
Sy

symb / files

symb / internal / tui / update_status.go

503 bytes
1package tui
2
3import (
4	tea "charm.land/bubbletea/v2"
5)
6
7// handleLSPDiag is a no-op now that the editor pane is removed.
8func (m *Model) handleLSPDiag(_ LSPDiagnosticsMsg) Model {
9	return *m
10}
11
12// handleGitBranch updates statusbar git state and schedules the next poll.
13func (m Model) handleGitBranch(msg gitBranchMsg) (tea.Model, tea.Cmd) {
14	m.gitBranch = msg.branch
15	m.gitDirty = msg.dirty
16	m.gitAdded = msg.added
17	m.gitModified = msg.modified
18	m.gitRemoved = msg.removed
19	return m, gitBranchTick()
20}