Skip to content

Commit deafe64

Browse files
nikola2501dlvhdr
authored andcommitted
chore: remove copySelectedFilePath func
1 parent eb2dfa1 commit deafe64

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

pkg/ui/mainModel.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func (m mainModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
116116
cmds = append(cmds, cmd)
117117
}
118118
case "c":
119-
cmd = m.copySelectedFilePath()
119+
cmd = m.fileTree.CopyFilePath(m.cursor)
120120
if cmd != nil {
121121
cmds = append(cmds, cmd)
122122
}
@@ -318,8 +318,3 @@ func (m *mainModel) setCursor(cursor int) tea.Cmd {
318318
m.fileTree = m.fileTree.SetCursor(m.cursor)
319319
return cmd
320320
}
321-
322-
func (m *mainModel) copySelectedFilePath() tea.Cmd {
323-
cmd := m.fileTree.CopyFilePath(m.cursor)
324-
return cmd
325-
}

0 commit comments

Comments
 (0)