Commit 2639e41
committed
Only try to record for files
Plugins like dirvish and netrw let you "edit" directories to see what's
in them. Using them triggers a panic in gtm, so don't do that.
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x20 pc=0x64d57e]
Also output the result of calling gtm so users can see whether it's
actually a path failure. Otherwise, gtm-vim's message may be confusing
(it led me astray).1 parent ebd33f7 commit 2639e41
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
0 commit comments