Skip to content

Commit

Permalink
feat: Do not trim in comparison check for variables l:oldline vs l:ne…
Browse files Browse the repository at this point in the history
…wline
  • Loading branch information
kkoomen committed May 17, 2019
1 parent 8ac67a1 commit d7f0a18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/doge/comment.vim
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function! doge#comment#has_changed(old_comment, new_comment) abort
for l:old_line in a:old_comment
let l:old_line_idx = index(a:old_comment, l:old_line)
let l:new_line = get(a:new_comment, l:old_line_idx)
if trim(l:old_line) !=# trim(l:new_line)
if l:old_line !=# l:new_line
return 1
endif
endfor
Expand Down

0 comments on commit d7f0a18

Please sign in to comment.