cespare / vim-toml

Vim syntax for TOML
MIT License
625 stars 40 forks source link

Fix not to force overwriting undo_ftplugin #27

Closed chitoku-k closed 6 years ago

chitoku-k commented 6 years ago

Fixed unnecessary overwrite by ftplugin. This meddled with other plugins as follows:

  1. vim-toml initializes b:undo_ftplugin with an empty string
  2. A plugin that appends a command to b:undo_ftplugin will insert | at the beginning of the string
  3. The command will fail when it executes because it begins with | (invalid)

This variable should not be defined unless undo is required.

Cheers!

cespare commented 6 years ago

Thanks!