- self._wrapped.insert(self._bookmark_wrapped_idx_pos, bookmark)
- self._wrapped_idx_neg -= int(self._bookmark_wrapped_idx_neg
- > self._wrapped_idx_neg)
-
- @property
- def _bookmark_wrapped_idx_pos(self) -> int:
- return self._last_wrapped_idx_pos_for_hist_idx_pos(
- self._newest_read_history_idx_pos) + 1
+ bookmark = _WrappedHistoryLine(self._BOOKMARK_HISTORY_IDX_POS,
+ FormattingString('-' * self._size.x))
+ lowest_read_wrapped_idx_neg\
+ = (self._wrapped_top_idx_neg
+ + self._bottom_wrapped_for_history_idx_pos(
+ self._lowest_read_history_idx_pos))
+ if lowest_read_wrapped_idx_neg == self._BOTTOM_IDX_NEG:
+ self._bookmark_idx_neg = self._BOTTOM_IDX_NEG
+ self._wrapped += [bookmark]
+ else:
+ self._bookmark_idx_neg = lowest_read_wrapped_idx_neg
+ self._wrapped.insert(self._bookmark_idx_neg + 1, bookmark)
+ if self._bookmark_idx_neg > self._wrapped_idx_neg + 1:
+ self._wrapped_idx_neg -= 1