Skip to content

Commit 113a8bb

Browse files
committed
Check if finished key present in task first
1 parent 32f5db7 commit 113a8bb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

autoload/project/run_tasks.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ function! s:GetTaskStatusLine(task, status)
7979
let right = ''
8080
endif
8181
if a:status == 'finished'
82-
let right = 'At '.a:task.finished.', '.right
82+
if has_key(a:task, 'finished')
83+
let right = 'At '.a:task.finished.', '.right
84+
endif
8385
endif
8486
let padding_number = width - strwidth(left) - strwidth(right) - 2
8587
let padding = ''

0 commit comments

Comments
 (0)