From: has2k1 Date: Tue, 13 Aug 2013 03:47:02 +0000 (-0500) Subject: Fix failing commented out tests X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/105f8eccc98313a6c848ebf28651d77af14a1a76?hp=105f8eccc98313a6c848ebf28651d77af14a1a76 Fix failing commented out tests Related commits --------------- - #6e60ef0 Reason ------ The indent functions, in this case GetPythonPEPIndent() can modify the cursor position. There is nothing wrong with that consequence, vim takes it into account and restores the cursor position (see References below). For the tests vim is not doing the calling, so the cursor is not restored. Solution -------- Restore the cursor position after calling the indent function. ---