Fix overflow in codemirror input