<p></p>
<p>AFAICT <code>document_open_full()</code> does not set the <em>per file</em> line wrapping, it uses the default wrapping setting because it is generally used to open new files, and they get the default setting as I explained above.</p>
<p>Then <code>open_session_file()</code> sets the wrapping to the value saved in the session and tells Scintilla to do that.  Your suggested change (as I understand it) will not tell Scintilla, so the display won't be changed to match to the value saved in the session file.</p>
<p>Changing wrappings should not cause debug messages, and indeed does not do so here, so the thing to do is to find whats different about your setup that causes the problem.  Do you get a message when you do <code>Menu->Document->Line Wrapping</code> which calls <code>editor_set_line_wrapping()</code>?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/2700#issuecomment-749849602">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ7GXIXALCJVBXP3PLDSWE2QZANCNFSM4VFHQYUA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJY6YLFCU7E7V2OIFTLSWE2QZA5CNFSM4VFHQYUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFSY4YAQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2700#issuecomment-749849602",
"url": "https://github.com/geany/geany/issues/2700#issuecomment-749849602",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>