Skip to content

Commit

Permalink
Merge pull request #70 from hfs/clock-out
Browse files Browse the repository at this point in the history
Support clock-out if no agenda files are defined
  • Loading branch information
hsitz committed Apr 10, 2014
2 parents 5375ae8 + c4b75fd commit 7ff20bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ftplugin/org.vim
Expand Up @@ -5102,7 +5102,7 @@ function! s:GetOpenClock()
let file = ''
if !exists('g:agenda_files') || (g:agenda_files == [])
unsilent call confirm("No agenda files defined, will search only this buffer for open clocks.")
let found = search('CLOCK: \[\d\d\d\d-\d\d-\d\d \S\S\S \d\d:\d\d\]\($\|\s\)','w')
let found_line = search('CLOCK: \[\d\d\d\d-\d\d-\d\d \S\S\S \d\d:\d\d\]\($\|\s\)','w')
else
let g:in_agenda_search = 1
for file in g:agenda_files
Expand Down

0 comments on commit 7ff20bb

Please sign in to comment.