BUF_MODIFF(b) dereferences the struct buffer pointer unconditionally. If the buffer was killed, this accesses freed memory and crashes. Check BUFFER_LIVE_P first. Use precise Python line-index swap instead of Edit tool to avoid accidentally replacing other patch content.
33 KiB
33 KiB