Typing the symbol ' before image introduces a new line

When a try to type the symbol ’ , to introduces characters like é or ç, in the LibreOffice Write document with a image, the symbol ’ typed before the image introduces a new line.
vokoscreenNG-2021-09-29_16-34-46

Layout US international keyboard (US, international with dead keys)

Version: 7.2.2.1 / LibreOffice Community (It also happens with version 7.1.5.2)
Build ID: 0e408af0b27894d652a87aa5f21fe17bf058124c
CPU threads: 8; OS: Linux 5.14; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: pt-BR
Calc: threaded

opensuse tumbleweed

sample file:
sample.odt (28.4 KB)

Please describe your problem, add relevant information about keyboard configuration and the like, instead of posting a video that merely keeps us guessing.

Can you share your operating system and LibreOffice version? To do that, choose menu Help - About LibreOffice, copy from there, edit your question and paste.
What happen if do you press Ctrl+Z inmediatelly after typing '?
There is no new line, but seem to be a Right Arrow move.

Layout US international keyboard (US, international with dead keys)

Version: 7.2.2.1 / LibreOffice Community (It also happens with version 7.1.5.2)
Build ID: 0e408af0b27894d652a87aa5f21fe17bf058124c
CPU threads: 8; OS: Linux 5.14; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: pt-BR
Calc: threaded

opensuse tumbleweed

Attach your sample file. You didn’t even enable View>Formatting Marks to give us an idea of your present formatting. We have also no idea about the nature of your “image” (picture from file or graphical objects created inside Writer).