Skip to content

Commit

Permalink
fix: string.buffer not found
Browse files Browse the repository at this point in the history
Fixes #1126
  • Loading branch information
lewis6991 committed Sep 27, 2024
1 parent 356df59 commit 8639036
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/gitsigns/diff_int.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ local create_hunk = require('gitsigns.hunks').create_hunk
local config = require('gitsigns.config').config

local decode
if jit then
if jit and package.preload['string.buffer'] then
decode = require('string.buffer').decode
else
decode = vim.mpack.decode
Expand Down Expand Up @@ -65,7 +65,7 @@ local run_diff_xdl_async = async.wrap(
end

local encode
if jit then
if jit and package.preload['string.buffer'] then
encode = require('string.buffer').encode
else
encode = vim.mpack.encode
Expand Down

0 comments on commit 8639036

Please sign in to comment.