Skip to content

%(lineno) is not updated as expected for untracked files #1192

@110y

Description

@110y

It seems that tig does not update the %(lineno) state variable for untracked files.

How to reproduce it

$ git clone https://github.com/jonas/tig.git /tmp/tig
$ cd /tmp/tig
$ echo 'test' > untracked.txt
$ tig status

# Select and enter the `untracked.txt` file in the `status-view`
# In the `stage-view` for the `untracked.txt` file, execute the `:echo %(lineno)` command

With this procedure, the last echo command echos 0 while it should be 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions