Skip to content

Pasting long paragraph leads to truncation of editor view #3396

@litequark

Description

@litequark

Environment

  • TeXstudio: 4.7.0
  • Qt: 6.6.1
  • OS: Windows 10
  • TeX distribution: texlive

Expected behavior

When the user pastes a paragraph into the editor (especially at the editor view's bottom), the editor should automatically scroll itself to the cursor point, and it can scroll to the end of file.

Actual behavior

When I paste a long paragraph WITHOUT any line break into the editor, the editor view can't scroll anywhere below the 3rd line (or so) of the pasted paragraph, as if the 3rd line is the actual end of file. This won't return to normal unless you reload the file in TeXStudio or make a line break somewhere (with the ENTER key).

However, pasting text with line break(s) won't cause such a behavior.

Note: This is only a display issue, not having any negative impact on the file content.

Pasting text without line break causes truncation of screen view

truncation_batch.mp4

Manual line break resets the view to normal

reset_batch.mp4

Pasting text with line break won't cause any issue

fine_with_linebreak_batch.mp4

How to reproduce

As demonstrated in the screencasts above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions