Skip to content

b:netrw_curdir tracks browsing dir even without g:netrw_keepdir = 0 #19811

@qwerlkjasdf

Description

@qwerlkjasdf

Steps to reproduce

  1. Browse some directory
  2. echo b:netrw_curdir -> outputs browsing directory

Expected behaviour

They must be separated by default as claimed in docs. As a result % command creates file in browsing dir and not where vim was opened (if cd not used) even with g:netrw_keepdir = 1

Version of Vim

9.2

Environment

arch
kitty, xterm-kitty

Logs and stack traces

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions