Formatlistpat changes when changing buffer focus

I have setlocal formatlistpat= in text.vim and it works properly when buffer of txt file is focused. But when I leave the buffer for a different split, the indentation changes. Is there a setting to keep the formatting even when the buffer is not in focus?

First image: list is formatted with indent when txt file buffer (bottom) is in focus
Second image: list formatting is gone when focus moved to c file buffer (top)