[wingide-users] swap-lines should work in the other direction

Mitchell Model dev at software-concepts.org
Fri Jul 15 12:04:20 MDT 2011


Wing's swap-lines is broken: a second swap-lines returns the text to the state it was in when the first swap-lines was done. This can be corrected (as I have done in an editor script function) simply by following the current swap-lines with a next-line:

def swap_lines_fix():
    editor = wingapi.gApplication.GetActiveEditor()
    editor.ExecuteCommand("swap-lines")
    editor.ExecuteCommand("next-line")

However, it should be corrected in the source for a future release.


More information about the wingide-users mailing list