fix cursor for clipboard copying of ES query