private void insertClose(String s) throws IOException {
        putString(s);
        int closePosition = buf.cursor;

        moveCursor(-1);
        viMatch();


        if (in.isNonBlockingEnabled()) {
            in.peek(parenBlinkTimeout);
        }

        setCursorPosition(closePosition);
        flush();
    }