I think it might has something to do with this issue: Down arrow at end of second to last line skips last line
How Chrome (or Chromium in general) deals with newlines has caused a whole host of bugs, and unfortunately there’s not much we can do about it