Commit f177c49
gitk: don't highlight files after submodules as submodules
gitk applies submodule highlighting (coloring lines starting with
" >" and " <") when `currdiffsubmod` is not an empty string.
However, it fails to reset `currdiffsubmod` after a submodule diff
ends, so any file diffs following a submodule diff will still be
highlighted as if they were submodule diffs.
There are two problems with the way gitk tries to reset `currdiffsubmod`:
1. The code says `set $currdiffsubmod` instead of `set currdiffsubmod`,
so it actually sets the variable whose name is the submodule path
instead.
2. It tries to do it after the first line in a submodule diff, which
is incorrect, since submodule diffs can contain multiple lines.
Fix this by resetting `currdiffsubmod` when a file diff starts.
Signed-off-by: Роман Донченко <dpb@corrigendum.ru>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>1 parent d4247e0 commit f177c49
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8150 | 8150 | | |
8151 | 8151 | | |
8152 | 8152 | | |
| 8153 | + | |
| 8154 | + | |
8153 | 8155 | | |
8154 | 8156 | | |
8155 | 8157 | | |
| |||
8233 | 8235 | | |
8234 | 8236 | | |
8235 | 8237 | | |
8236 | | - | |
8237 | 8238 | | |
8238 | 8239 | | |
8239 | 8240 | | |
8240 | | - | |
8241 | 8241 | | |
8242 | 8242 | | |
8243 | 8243 | | |
| |||
0 commit comments