bugfix: use of funcref in settings
This commit is contained in:
@@ -35,9 +35,6 @@ endfunction
|
||||
|
||||
" Identifier creation
|
||||
function denote#meta#identifier_generate()
|
||||
if g:denote_identifier_fun
|
||||
return execute 'call ' .. g:denote_identifier_fun .. '()'
|
||||
endif
|
||||
return exists('*strftime')
|
||||
\ ? strftime('%Y%m%dT%H%M%S')
|
||||
\ : rand()
|
||||
|
||||
@@ -26,7 +26,7 @@ endfunction
|
||||
" This creates a new denote entry with the given title and of the given
|
||||
" filetype. The title may be empty.
|
||||
function denote#notes#new(title, ft=g:denote_new_ft)
|
||||
let l:identifier=denote#meta#identifier_generate()
|
||||
let l:identifier=g:Denote_identifier_fun()
|
||||
let l:fn=l:identifier .. '--' .. a:title
|
||||
\ ->tolower()
|
||||
\ ->substitute('[^[:fname:]]\|/', '-', 'g')
|
||||
|
||||
Reference in New Issue
Block a user