emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-30 9f0603207b1: ; * src/treesit.c: Minor cleanups of recent change


From: Eli Zaretskii
Subject: emacs-30 9f0603207b1: ; * src/treesit.c: Minor cleanups of recent changes.
Date: Mon, 9 Sep 2024 07:03:58 -0400 (EDT)

branch: emacs-30
commit 9f0603207b17084563c73f271c397c0c469bf3e9
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    ; * src/treesit.c: Minor cleanups of recent changes.
---
 src/treesit.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/treesit.c b/src/treesit.c
index 548dfeb8c6e..ee83486b92a 100644
--- a/src/treesit.c
+++ b/src/treesit.c
@@ -487,8 +487,7 @@ treesit_initialize (void)
 
 /*** Debugging */
 
-void
-treesit_debug_print_parser_list (char *, Lisp_Object);
+void treesit_debug_print_parser_list (char *, Lisp_Object);
 
 void
 treesit_debug_print_parser_list (char *msg, Lisp_Object parser)
@@ -1233,7 +1232,7 @@ treesit_read_buffer (void *parser, uint32_t byte_index,
   else
     {
       beg = (char *) BUF_BYTE_ADDRESS (buffer, byte_pos);
-      ptrdiff_t gap_bytepos = buffer->text->gpt_byte;
+      ptrdiff_t gap_bytepos = BUF_GPT_BYTE (buffer);
       len = (byte_pos < gap_bytepos)
            ? gap_bytepos - byte_pos : visible_end - byte_pos;
     }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]