texstudio-org / texstudio-org/texstudio

Number-of-characters-per-line not respected in one editor tab after font size is changed in another editor tab

Open
#263 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
3.6k
Forks
403
Avg merge
3h 14m
Merged PRs (30d)
12

Description

Environment
  • TeXstudio: 2.12.8
  • Qt: 5.8.0
  • OS: Windows10
  • TeX distribution: miktex
Expected behavior

The font size and the right borderline in the editor should match so that the number-of-characters-per-line is as given in the settings.

Actual behavior

In the scenario described below, the right borderline in one editor tab is not updated accordingly when the font size is changed in another editor tab. To make them match again, a manual change to the font size is needed.

How to reproduce
  1. open two documents; set the maximum number of characters in a line; enable zooming with mouse wheel;
  2. switch to document 1;
    image
  3. switch to document 2;
  4. Increase/Decrease font size using mouse wheel when document 2 is open;
  5. switch back to document 1.
    The font size of document 1 has changed, but the right borderline is not.
    When font size is increased:
    image
    When font size is decreased:
    image

(The line on the right side of each image corresponds to where the maximum number of characters is reached)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the two-document scenario in the editor with mouse-wheel zooming and a configured maximum line length. Trace how font-size changes propagate between editor tabs and how the right borderline is recalculated; done means the border in document 1 matches the configured character limit after changing the font size in document 2.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.