void drawUnfocusedCaret(boolean visible) {
        if (hexText.isDisposed()) return;

        GC unfocusedGC = null;
        Caret unfocusedCaret;
        int chars = 0;
        int shift = 0;
        try {
            if (lastFocusedTextArea == 1) {
                unfocusedCaret = previewText.getCaret();
                unfocusedGC = new GC(previewText);
            } else {
                unfocusedCaret = hexText.getCaret();
                unfocusedGC = new GC(hexText);
                chars = 1;
                if (hexText.getCaretOffset() % 3 == 1) shift = -1;
            }
            if (unfocusedCaret.getVisible()) {
                Rectangle unfocused = unfocusedCaret.getBounds();
                unfocusedGC.setForeground(visible ? COLOR_NORMAL_SHADOW : HexEditThemeSettings.instance.colorCaretLine);
                unfocusedGC.drawRectangle(unfocused.x + shift * unfocused.width,
                    unfocused.y,
                    unfocused.width << chars,
                    unfocused.height - 1);
            }
        } finally {
            if (unfocusedGC != null) {
                unfocusedGC.dispose();
            }
        }
    }
While in insert mode, deletes the selection

@return did delete something
plugins/org.jkiss.dbeaver.ui.editors.hex/src/org/jkiss/dbeaver/ui/editors/binary/HexEditControl.java