Added x-restriction for cursor(=line length)