On 11/12/11 07:10, Ben Fritz wrote:
On Dec 9, 7:24 pm, Charles Cooper<[email protected]> wrote:
This problem occurs in vim with +multi_byte.
:edit ++encoding=xyz always causes error E474, while ++enc=xyz succeeds.
"encoding" is the only ++option where the short form of the option is a
substring of the long form. The check for these options does not account
for this.
This is confusing, because ++enc actually modifies 'fileencoding', not
'encoding'. I think this potentially makes it even more confusing.
++enc and ++encoding are already both foreseen, but the current code
tests for ++enc first, and for ++encoding only if ++enc was not found,
which is wrong. The patch just reverses the order of the already
existing tests.
The case of ++bin / ++binary / ++nobin / ++nobinary is already handled
by the existing code.
Best regards,
Tony.
--
Ten years of rejection slips is nature's way of telling you to stop
writing.
-- R. Geis
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php