Methods and apparatus for video processing are described. One example method includes determining, for a conversion between a video block of a video and a bitstream of the video, that the video block satisfies a condition. The video block is coded in the bitstream using an intra block copy mode. The method further includes performing the conversion based on the determining. Here, due to the video block satisfying the condition, a portion of an intra block copy buffer is reset during the conversion.