Skip to content

Commit 3615a42

Browse files
author
github-actions
committed
[docgen] Update doc/orgmode.txt
skip-checks: true
1 parent 60a1016 commit 3615a42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/orgmode.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ For example, lets add option to export to `rtf` format via `pandoc`:
400400
f = {
401401
label = 'Export to RTF format',
402402
action = function(exporter)
403-
local current_file = vim.fn.bufname()
403+
local current_file = vim.api.nvim_buf_get_name(0)
404404
local target = vim.fn.fnamemodify(current_file, ':p:r')..'.rtf'
405405
local command = {'pandoc', current_file, '-o', target}
406406
local on_success = function(output)

0 commit comments

Comments
 (0)