[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master c69858b3f0: ; * lisp/treesit.el (treesit-ready-p): Guard agai
Re: master c69858b3f0: ; * lisp/treesit.el (treesit-ready-p): Guard against empty buffers.
Tue, 22 Nov 2022 18:18:43 -0800
> On Nov 22, 2022, at 5:51 PM, Stefan Monnier <firstname.lastname@example.org> wrote:
>> - (when (> (position-bytes (1- (point-max))) treesit-max-buffer-size)
>> + (when (> (position-bytes (max (point-min) (1- (point-max))))
>> + treesit-max-buffer-size)
> I'd expect `treesit-max-buffer-size` to be compared to `buffer-size`
> rather than to buffer positions.
> Is it really that important to count bytes rather than characters?
I’m not sure, I’ll leave Eli to explain his intention :-)