DECSTBM and soft/hard wrap
A thought I had while reviewing the vte bidi branch is that DECSTBM might set lines to hard wrap at the boundaries directly upon /entering/ restricted scrolling mode, instead of this only happening later when actual restricted scrolling occurs.