Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/prompt_toolkit/key_binding/bindings/__pycache__/scroll.cpython-39.pyc
Ðазад
a d�h� � @ s� d Z ddlmZ ddlmZ g d�ZeZddddd �d d�Zddddd �dd �Zddd�dd�Z ddd�dd�Z ddd�dd�Zddd�dd�Zddd�dd�Z ddd�dd�ZdS )z� Key bindings, for scrolling up and down through pages. This are separate bindings, because GNU readline doesn't have them, but they are very useful for navigating through long multiline buffers, like in Vi, Emacs, etc... � )�annotations)� KeyPressEvent)�scroll_forward�scroll_backward�scroll_half_page_up�scroll_half_page_down�scroll_one_line_up�scroll_one_line_downF�E�bool�None)�event�half�returnc C s� | j jj}| j j}|r�|jr�|j}|j}|j}|r:|d }|jjd }d}||j k r�|� |�} || |k r�|| 7 }|d7 }qJq�qJ|j�|d�|_dS )z Scroll window down. � � r N) �app�layout�current_window�current_buffer�render_info� ui_content� window_height�document�cursor_position_row� line_count�get_height_for_line�translate_row_col_to_index�cursor_position) r r �w�b�infor � scroll_height�y�height�line_height� r&