Skip to content

Commit

Permalink
Avoid "Hit enter to continue" prompt if cmdheight is default
Browse files Browse the repository at this point in the history
Why: It's annoying and unnecessary.

Closes #13. Credit to @jmandawg for the patch.
  • Loading branch information
whiteinge committed Nov 30, 2018
1 parent 3cffeb3 commit 0cac3a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/diffconflicts.vim
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@ endfunction

function! s:checkThenDiff()
if (s:hasConflicts())
redraw
echohl WarningMsg
\ | echo "Resolve conflicts leftward then save. Use :cq to abort."
\ | echon "Resolve conflicts leftward then save. Use :cq to abort."
\ | echohl None
return s:diffconfl()
else
Expand Down

0 comments on commit 0cac3a8

Please sign in to comment.