From 3063dd7afc88e8d50f2ec578b9fd5afcc578024b Mon Sep 17 00:00:00 2001 From: blindFS Date: Wed, 16 Dec 2015 13:07:28 +0800 Subject: [PATCH] #119 --- autoload/taskwarrior/data.vim | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/autoload/taskwarrior/data.vim b/autoload/taskwarrior/data.vim index ec3eb1b..d222942 100644 --- a/autoload/taskwarrior/data.vim +++ b/autoload/taskwarrior/data.vim @@ -36,9 +36,8 @@ function! taskwarrior#data#get_value_by_column(line, column, ...) let index = match(b:task_report_columns, '^'.a:column.'.*') return taskwarrior#data#get_value_by_index(a:line, index(b:task_report_columns, a:column)) else - let dict = taskwarrior#data#get_query() - let val = has_key(dict, a:column) ? - \ dict[a:column] : '' + let dict = taskwarrior#data#get_query()[0] + let val = get(dict, a:column, '') if type(val) == type('') return val elseif type(val) == type([]) @@ -92,7 +91,7 @@ function! taskwarrior#data#get_query(...) if uuid == '' return {} endif - return webapi#json#decode(system('task rc.verbose=off '.uuid.' export')) + return webapi#json#decode(system('task '.uuid.' export')) endfunction function! taskwarrior#data#global_stats()