Commit 9c2e270b authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

softwrap: initialize 'editwincols' early, for computing the number of wraps

When giving a line number on the command line, do_gotolinecolumn() needs
to know the width of the screen to be able to (roughly) place the target
line in the center of the screen.

This fixes https://savannah.gnu.org/bugs/?49462.
No related merge requests found
Showing with 2 additions and 0 deletions
+2 -0
......@@ -2560,6 +2560,8 @@ int main(int argc, char **argv)
* dimensions. */
window_init();
editwincols = COLS;
/* Set up the signal handlers. */
signal_init();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment