tpope / vim-repeat

repeat.vim: enable repeating supported plugin maps with "."
http://www.vim.org/scripts/script.php?script_id=2136
2.58k stars 81 forks source link

Fixed error produced with modified off #56

Open sbdchd opened 7 years ago

sbdchd commented 7 years ago

Before, when pressing in a buffer that has &modified set to 0, repeat would produce an error:

Error detected while processing function repeat#wrap:
line    2:
E21: Cannot make changes, 'modifiable' is off
Press ENTER or type command to continue

Now, repeat checks if the buffer is modifiable before executing.