bugfix: use of funcref in settings

This commit is contained in:
2026-02-26 13:44:44 +01:00
parent d6bc3cbb04
commit 7a82fe32db
4 changed files with 20 additions and 16 deletions

View File

@@ -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()

View File

@@ -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')