yegappan / fileselect

File Selector Vim Plugin
BSD 2-Clause "Simplified" License
18 stars 2 forks source link

no need to reset 'cpo' in Vim9 script #3

Closed lacygoill closed 4 years ago

lacygoill commented 4 years ago

In Vim9 script, it is no longer needed to temporarily reset the 'cpoptions' option, because that's already done by :vim9script. See :h :vim9script.

A side effect of :vim9script is that the 'cpoptions' option is set to the Vim default value, like with: > :set cpo&vim One of the effects is that |line-continuation| is always enabled. The original value of 'cpoptions' is restored at the end of the script.

Thank you for writing this plugin.