vim-scripts/IndentConsistencyCop — pull request #1 by ukch (2013-12-05 11:30:54+00:00)
Title: Consistent failure on GVIM

To reproduce:

* Create a file that uses a different indentation to your default (ie. tabs instead of spaces)
* Open the file in GVIM and run `:IndentConsistencyCop`
* 'The buffer's indent settings are inconsistent...' message will appear with an option to ignore, change, or 'Wrong, choose correct setting...'
* Click 'Change'

Expected: The settings for the file should update, and the message 'The buffer settings have been changed...' message should appear.

Actual: Settings are changed as expected, but a the following errors appear instead of the success message:

Error detected while processing function IndentConsistencyCop#IndentConsistencyCop..76_IndentBufferConsistencyCop..76_ReportBufferSettingsConsistency:

line 17:
E605: Exception not caught: ASSERT: Passed buffer settings are equal to actual indent settings.
Error detected while processing function IndentConsistencyCop#IndentConsistencyCop..76_IndentBufferConsistencyCop:
line 54:
E171: Missing :endif
Error detected while processing function IndentConsistencyCop#IndentConsistencyCop:
line 53:
E171: Missing :endif

This is more a hack than a real fix, but it solves the problem at hand.