Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
110y opened this issue Jun 5, 2022 · 1 comment · Fixed by #1193
Closed

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

110y opened this issue Jun 5, 2022 · 1 comment · Fixed by #1193

Comments

@110y
Copy link
Contributor

110y commented Jun 5, 2022

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.

@110y
Copy link
Contributor Author

110y commented Jun 5, 2022

I just tried to fix this issue and sent a PR: #1193

Does it make sense...?

koutcher pushed a commit that referenced this issue Jun 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant