mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 22:30:04 +08:00
fix(git): fix wrong branch name
This commit is contained in:
parent
f791f5bbd8
commit
8077f78d13
@ -131,7 +131,7 @@ local function get_cursor_info()
|
||||
elseif vim.startswith(l, ' ') then
|
||||
local remote_line = vim.fn.search('^ ▼ ', 'bnW')
|
||||
if remote_line > 0 then
|
||||
c.branch = string.gsub(string.sub(vim.fn.getline(remote_line), 7), updating_extra_text, '') .. string.sub(l, 12)
|
||||
c.branch = string.gsub(string.sub(vim.fn.getline(remote_line), 7), updating_extra_text, '') .. '/' .. string.sub(l, 12)
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user