Skip to content

Commit a87b6c0

Browse files
committed
Use slicing instead of trim() to remove newline
1 parent 5e23411 commit a87b6c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/diffconflicts.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ endfunction
2222
function! s:diffconfl()
2323
let l:origBuf = bufnr("%")
2424
let l:origFt = &filetype
25-
let l:conflictStyle = trim(system("git config --get merge.conflictStyle"))
25+
let l:conflictStyle = system("git config --get merge.conflictStyle")[:-2]
2626

2727
" Set up the right-hand side.
2828
rightb vsplit

0 commit comments

Comments
 (0)