<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Confusing&#x2F;Frustrating folding behavior]]></title><description><![CDATA[<p dir="auto">Hello,<br />
Using version 8.9.6.4 s4-bit<br />
Windows 11<br />
Language: Python</p>
<p dir="auto">I’ve noticed this for awhile, even in previous versions.<br />
I normally like to keep my functions folded so I can navigate easily, unfolding them as needed, when editing, then folding them back up.</p>
<p dir="auto">My issue is that often, not always, but often, once I fold the function back up, the FUNCTION BELOW IT has somehow opened, so I close THAT one and…</p>
<p dir="auto">The NEXT one is now unfolded, so I fold that…</p>
<p dir="auto">This continues all the way down my file. I will have to manually fold every. single. function. And no, I am not forgetting to fold them up and only noticing it later. I at first thought that was what was happening, but no, they are unfolding on their own. Sure, I can fold them up again, but it is annoying.  Also, it doesn’t always happen. Only sometimes.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/27575/confusing-frustrating-folding-behavior</link><generator>RSS for Node</generator><lastBuildDate>Tue, 16 Jun 2026 17:41:24 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/27575.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 16 Jun 2026 00:55:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Confusing&#x2F;Frustrating folding behavior on Tue, 16 Jun 2026 15:30:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thorin-schmidt" aria-label="Profile: Thorin-Schmidt">@<bdi>Thorin-Schmidt</bdi></a> ,</p>
<p dir="auto">That sounds similar to <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/issues/18093" rel="nofollow ugc">Issue #18093</a>, where the seemingly-random unfolding was happening for a UDL instead of for Python.  In that issue, it’s because of the presence of a comment in the second block (but my experiment below shows that’s not the case for the python folding… at least, not the sole cause)</p>
<p dir="auto">I don’t know if it’s related or not.  Can you share a small piece of code (maybe 3 blocks long) that shows the problem if that’s all you have in the file?  For example, I cannot replicate your problem with</p>
<pre><code class="language-py">def first():
    more()
    return

def more():
    # commented
    pass

def most():
    first()
    more()
    return
</code></pre>
<blockquote>
<p dir="auto">I will have to manually fold every. single. function</p>
</blockquote>
<p dir="auto">Well, that’s the easy part.  <code>Alt+0</code> folds everything with one keystroke (the default keystroke for <strong>View &gt; Fold All</strong>).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/105743</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/105743</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 16 Jun 2026 15:30:10 GMT</pubDate></item></channel></rss>