Commit f1c1715
Fix permission errors when used with zsh-users/zsh-syntax-highlighting
When using this plugin alongside zsh-users/zsh-syntax-highlighting,
pressing backspace or enter on an empty command line produces errors:
- _zsh_highlight-zle-buffer-p:4: permission denied:
- _zsh_highlight-zle-buffer:25: permission denied:
- _zsh_highlight-zle-buffer:27: not an identifier:
This happens because both plugins share internal arrays and the newer
zsh-users plugin registers entries that are incompatible.
Fix:
- Validate highlight_predicate is non-empty before executing
- Validate func exists as callable function before invoking
- Validate cache_place is a valid identifier before assignment
Builds on #12 with additional guards.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 69b77b1 commit f1c1715
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
0 commit comments