For some files, the ~ symbol will always be displayed
Nobody has claimed this yet.
- Dominant language
- Vim Script
- Stars
- 2.7k
- Forks
- 113
- PR merge metrics
- No merged PRs in 30d
Description
Perform the following operations to reproduce the problem:
- Create new files main.c and com.h under the test directory structure. (test/main.c test/com.h)
- The content of the document is arbitrary, for example
1
2
3
3
4
5
- And then execute the instructions. (
git initgit add --all`git commit -m "test") - You will see that all lines in com.h display the ~ symbol

It should not display the ~ symbol.The prompt for the main.c file is normal.
I also found similar problems in my other warehouses, some of the file prompt is abnorma.
The following projects reproduce this problem
test.zip
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with test/main.c and test/com.h, then run the listed git init, git add --all, and git commit commands. Start by tracing how vim-signify assigns signs to these files and compare the behavior for main.c and com.h. Done means com.h no longer shows persistent ~ signs while the normal prompt for main.c remains unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, vim
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100