MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / ConfirmEdit

Method ConfirmEdit

internal/tui/settings.go:113–119  ·  view source on GitHub ↗

ConfirmEdit saves the edit buffer to the selected item.

()

Source from the content-addressed store, hash-verified

111
112// ConfirmEdit saves the edit buffer to the selected item.
113func (s *SettingsOverlay) ConfirmEdit() {
114 if s.editing && s.selectedIndex < len(s.items) {
115 s.items[s.selectedIndex].StringVal = s.editBuffer
116 s.editing = false
117 s.editBuffer = ""
118 }
119}
120
121// CancelEdit discards the edit buffer.
122func (s *SettingsOverlay) CancelEdit() {

Callers 2

handleSettingsKeysMethod · 0.80

Calls

no outgoing calls

Tested by 1