Yuan Fu <casouri@gmail.com> writes:
> #ifdef HAVE_TREE_SITTER
> - treesit_record_change (start_byte, old_end_byte, CHAR_TO_BYTE (end));
> + treesit_record_change (start_byte, old_end_byte, CHAR_TO_BYTE (orig_end + added));
> #endif
> - }
>
> return orig_end + added;
> }
This is 88 columns! Would you please fill it to 80?
> On Nov 22, 2022, at 1:35 AM, Po Lu <luangruo@yahoo.com> wrote:
>
> Yuan Fu <casouri@gmail.com> writes:
>
>> #ifdef HAVE_TREE_SITTER
>> - treesit_record_change (start_byte, old_end_byte, CHAR_TO_BYTE (end));
>> + treesit_record_change (start_byte, old_end_byte, CHAR_TO_BYTE (orig_end + added));
>> #endif
>> - }
>>
>> return orig_end + added;
>> }
>
> This is 88 columns! Would you please fill it to 80?
Sure, but now I’m confused. IIRC some style changes made to treesit.c unwraps some lines into long lines, which is why I didn’t wrap this line. What exactly is our policy?
Yuan
Yuan Fu <casouri@gmail.com> writes:
> Sure, but now I’m confused. IIRC some style changes made to treesit.c
> unwraps some lines into long lines, which is why I didn’t wrap this
> line. What exactly is our policy?
If any lines were made longer than 80 columns, then it was a mistake.
Our policy is to keep everything inside column 80.