Skip to content

Commit 455fcff

Browse files
committed
Fix keyboard command "o" in the todo widget
Pass the full path of the todo file to openFileUtil. Fix #256
1 parent c705297 commit 455fcff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

todo/widget.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ func (widget *Widget) keyboardIntercept(event *tcell.EventKey) *tcell.EventKey {
130130
return nil
131131
case "o":
132132
// Open the file
133-
wtf.OpenFile(widget.filePath)
133+
confDir, _ := cfg.ConfigDir()
134+
wtf.OpenFile(fmt.Sprintf("%s/%s", confDir, widget.filePath))
134135
return nil
135136
}
136137

0 commit comments

Comments
 (0)