set max column num and cursorcolumn