Skip to content

buffer: foldmethod is used as a buffer option #269

Closed
@Milly

Description

@Milly

Describe the bug

'foldmethod' is "local to window" option.

						*'foldmethod'* *'fdm'*
'foldmethod' 'fdm'	string (default: "manual")
			local to window
			{not available when compiled without the |+folding|
			feature}
	The kind of folding used for the current window.  Possible values:
	|fold-manual|	manual	    Folds are created manually.
	|fold-indent|	indent	    Lines with equal indent form a fold.
	|fold-expr|	expr	    'foldexpr' gives the fold level of a line.
	|fold-marker|	marker	    Markers are used to specify folds.
	|fold-syntax|	syntax	    Syntax highlighting items specify folds.
	|fold-diff|	diff	    Fold text that is not changed.

But it is used as "local to buffer" option in the buffer module.

let foldmethod = getbufvar(a:bufnr, '&foldmethod')

op.foldmethod.getBuffer(denops, bufnr),

Expected behavior

Use as "local to window" option, or remove it if unnecessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions