Skip to content

make ctrl-o does not change buflisted option for nofile buffer #18882

@wsdjeg

Description

@wsdjeg

Is your feature request about something that is currently impossible or hard to do? Please describe the problem.

ctrl-o alway change buffer's buflisted option to true, even if the buffer's buftype option is nofile. I alway use nofile scratch buffer to save temp notes, and use ctrl-o to jump to this buffer after opening a new file. but then the buflisted option of the scratch buf is change, and it will be shown on tabline plugin.

Describe the solution you'd like

  1. vim -u NONE
  2. :enew, :set buftype=nofile, :set nobuflisted
  3. :enew
  4. type ctrl-o
  5. :echo &buflisted

then 1 is printed, I hope the &buflisted option not to be changed.

Describe alternatives you've considered

I know ctrl-o also open files wich is not loaded, maybe do not change buflisted when buftype is set?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions