Commit 2a1a8a2
feat: migrate mode and cache_mode fields to buffer system
- Add cache_mode field to Buffer struct with BufferAPI methods
- Add wrapper methods is_cache_mode() and set_cache_mode()
- Update all 6 cache_mode references to use wrapper methods
- Add cache_mode to buffer debug output
- Migrate mode field using existing wrapper methods
- Update all 52+ mode references to use get_mode() and set_mode()
- Replace direct assignments with set_mode() calls
- Replace match/comparison statements with get_mode() calls
Both fields now properly use buffer system for per-buffer state management.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent f9f1bca commit 2a1a8a2
3 files changed
Lines changed: 99 additions & 70 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| 218 | + | |
| 219 | + | |
218 | 220 | | |
219 | 221 | | |
220 | 222 | | |
| |||
253 | 255 | | |
254 | 256 | | |
255 | 257 | | |
| 258 | + | |
256 | 259 | | |
257 | 260 | | |
258 | 261 | | |
| |||
571 | 574 | | |
572 | 575 | | |
573 | 576 | | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
574 | 585 | | |
575 | 586 | | |
576 | 587 | | |
| |||
722 | 733 | | |
723 | 734 | | |
724 | 735 | | |
| 736 | + | |
725 | 737 | | |
726 | 738 | | |
727 | 739 | | |
| |||
770 | 782 | | |
771 | 783 | | |
772 | 784 | | |
| 785 | + | |
773 | 786 | | |
774 | 787 | | |
775 | 788 | | |
| |||
0 commit comments