Skip to content
Browse files

fix for new bug when running date-based agendas

  • Loading branch information...
1 parent 9f7c216 commit cf9c9879886d46c094bac6f19186e59d12492c6d @hsitz committed Feb 13, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 ftplugin/org.vim
View
5 ftplugin/org.vim
@@ -313,7 +313,7 @@ function! s:RunCustom(search)
endif
let mydict = item
if mydict.type ==? 'agenda'
- let mydate = DateCueResult( get(mydict,agenda_date,''), s:Today())
+ let mydate = DateCueResult( get(mydict,'agenda_date',''), s:Today())
let mydur = get(mydict, 'agenda_duration','w')
let mydur = (mydur == 'w') ? '7' : (mydur == 'd' ? '1' : mydur)
@@ -6864,6 +6864,9 @@ function! OrgAgendaDashboard()
let g:org_sparse_spec = input("Enter search string: ")
if bufname("%") ==? '__Agenda__'
:bd
+ endif
+ silent call s:SparseTreeRun(g:org_sparse_spec)
+ endif
finally
if bufname('%') == '__Agenda__'
if !exists("b:v")

0 comments on commit cf9c987

Please sign in to comment.
Something went wrong with that request. Please try again.