We mainly need this to keep columns on screen now that they'll disappear if they go too far on screen.
XD43MI5HTDBO7HD4D2KD4U3UUAOJEMDVSJXJR54ZPW2FHCFB7X5AC
IHVD5VZIQU72CGEGWTFVTI6K2VVZYJHUIBW3GLSCDOFFQGZVLV5QC
QWWOAZ3P73XN74JBLI23YKM7KKRUCH55EMD7I6VPKG7B6DWZXB2QC
AUE2Y6HE5AIZVFO6EGLYNXKBDXGXJKDURTA4CFAEX6ZWRZKUCMUQC
GQBUV2XOMEPMTXMPCBQWGGIUXGQDX77VTGPFIG6YT7G64ASOYHXQC
5O356ZWY6DCM3Y6VFZPYQY5AIHIN6JGZDGLXU5DL6LWTFNDDFPFQC
RQ37HOBMOPOATWRTCEYIRSSGO6P63SQTGFUQM32QFJXKQI5NYDMQC
-- move column to _after_ index
function command.move_column(index)
if index == nil then index = 1 end
if Cursor_pane.col < 1 then
add_error('no current column')
return
end
local column = Surface[Cursor_pane.col]
table.remove(Surface, Cursor_pane.col)
table.insert(Surface, index+1, column)
Cursor_pane.col = index+1
bring_cursor_column_on_screen()
bring_cursor_of_cursor_pane_in_view('down')
plan_draw()
end