We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 911b106 commit 451e57fCopy full SHA for 451e57f
lua/neogit/lib/git/index.lua
@@ -6,7 +6,7 @@ local util = require("neogit.lib.util")
6
---@return string
7
local function eol_character(path)
8
local lines = vim.fn.readfile(path, "b", 1)
9
- if (lines[1] and lines[1]:find("\r")) then
+ if lines[1] and lines[1]:find("\r") then
10
return "\r\n"
11
else
12
return "\n"
0 commit comments