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.