<?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[Npp v8.6 cursor oddity with copy paste into a 2x0 column]]></title><description><![CDATA[<p dir="auto">This is also posted to github as <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14466" rel="nofollow ugc">Npp v8.6 cursor oddity with copy paste into a 2x0 column</a></p>
<p dir="auto">I have two columns separated by tabs:</p>
<pre><code class="language-txt">1111111111		AAAA
22222222222		BBBB
333333333333	CCCCCCCCCCC DDDD
</code></pre>
<p dir="auto">I wanted to copy paste the <code>CCCCCCCCCCCCC </code> in front of the <code>AAAA</code> and <code>BBBB</code> to create</p>
<pre><code class="language-txt">1111111111		CCCCCCCCCCC AAAA
22222222222		CCCCCCCCCCC BBBB
333333333333	CCCCCCCCCCC DDDD
</code></pre>
<ol>
<li>Using the keyboard I selected the <code>CCCCCCCCCCCCC </code> (I included the space in the selection) on the 3… line</li>
<li><code>Ctrl-C</code> to load the selected text into the copy/paste buffer</li>
<li>Left arrow which brought the text cursor back to the beginning of the <code>CCCCCCCCCCCCC </code></li>
<li>Up-arrow once to move before <code>BBBB</code></li>
<li>Shift+Alt+Up arrow to form a 2-row by 0 column selection/cursor that is now in front of both <code>AAAA</code> and <code>BBBB</code></li>
<li>Ctrl-V to paste which creates <code>CCCCCCCCCCC AAAA</code> and <code>CCCCCCCCCCC BBBB</code> as desired and expected.</li>
</ol>
<p dir="auto">The v8.6 surprise and unexpected result is that the cursors moved backwards to column 2 of the 1… and 2… lines.</p>
<p dir="auto">Also, while the cursors are on column 2 the status line says the cursors are on column 17. If I right arrow the cursors move to column 3 and the status line now says they are on column 3.</p>
<p dir="auto">With v8.5.8 the cursors would be on column 17 just after the newly pasted <code>CCCCCCCCCCC </code> and which is also just before the <code>AAAA</code> and <code>BBBB</code>. This is what I’m used to and what I suspect most people expect.</p>
<p dir="auto">Experimentation with v8.6 finds that the distance the cursor’s move backwards depends on the length of the <code>CCCC...</code> data I’m copying. If it’s a four character <code>CCCC</code> then the cursors move backwards four characters.</p>
<p dir="auto">The <code>111...</code> and <code>222...</code> are slightly different lengths. Experimentation shows that changing these also changes the outcome but I did not experiment enough to detect the pattern.</p>
<p dir="auto">While my previous example used tabs to separate the <code>111...</code> and <code>222...</code> from the <code>AAAA</code> and <code>BBBB</code> I get the same results had the starting data been what’s below though the cursors go backwards 12 characters to column 5.</p>
<p dir="auto">While the cursors are on column 5 the status line says the cursors are on column 17. If I right arrow the cursors move to column 6 and the status line now says they are on column 6.</p>
<pre><code class="language-txt">1111111111111111AAAA
2222222222222222BBBB
3333333333333333CCCCCCCCCCCC
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/topic/25225/npp-v8-6-cursor-oddity-with-copy-paste-into-a-2x0-column</link><generator>RSS for Node</generator><lastBuildDate>Thu, 11 Jun 2026 06:28:45 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/25225.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 09 Dec 2023 20:41:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Npp v8.6 cursor oddity with copy paste into a 2x0 column on Sun, 10 Dec 2023 01:07:52 GMT]]></title><description><![CDATA[<p dir="auto">I did more testing and discovered that the version of misbehavior that <a class="plugin-mentions-user plugin-mentions-a" href="/user/coises" aria-label="Profile: Coises">@<bdi>Coises</bdi></a> observed also happens with npp 8.3.3 and 8.5.8 and thus it’s no longer just a npp 8.6 issue. I experimented more and discovered the reason my installed copy of npp shows the behavior right away, instead of when I switch tabs is that I had:</p>
<ul>
<li>My plugins\config\PythonScriptStartup.cnf has <code>SETTING/STARTUP/ATSTARTUP</code></li>
<li>My plugins\config\PythonScript\scripts\startup.py has:</li>
</ul>
<pre><code class="language-py">from Npp import editor, editor1, editor2, SCINTILLANOTIFICATION, INDICATORSTYLE
def revert_url_indicator(args):
    editor1.indicSetHoverStyle(8, INDICATORSTYLE.TEXTFORE)
    editor2.indicSetHoverStyle(8, INDICATORSTYLE.TEXTFORE)

editor.callbackSync(revert_url_indicator, [SCINTILLANOTIFICATION.UPDATEUI])
</code></pre>
<ul>
<li>Apparently as the UI gets updated Python is sweeping through all of the tabs which is why for me I did not need to switch to another tab and back to trigger the behavior I reported. That scriptlet came from <a href="https://community.notepad-plus-plus.org/topic/19736/formatting-of-links-when-selected-or-on-mouseover-has-a-blue-gray-background">this forum thread</a> in July 2020.</li>
</ul>
]]></description><link>https://community.notepad-plus-plus.org/post/91088</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91088</guid><dc:creator><![CDATA[mkupper]]></dc:creator><pubDate>Sun, 10 Dec 2023 01:07:52 GMT</pubDate></item><item><title><![CDATA[Reply to Npp v8.6 cursor oddity with copy paste into a 2x0 column on Sat, 09 Dec 2023 22:10:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/coises" aria-label="Profile: Coises">@<bdi>Coises</bdi></a><br />
I just did an edit at the bottom of my original post as I had</p>
<pre><code class="language-txt">1111111111111111CCCCCCCCCCCCAAAA
2222222222222222CCCCCCCCCCCCBBBB
3333333333333333CCCCCCCCCCCC
</code></pre>
<p dir="auto">at the bottom but intended to have</p>
<pre><code class="language-txt">1111111111111111AAAA
2222222222222222BBBB
3333333333333333CCCCCCCCCCCC
</code></pre>
<p dir="auto">I will use that pattern for this post.</p>
<p dir="auto">I was not switching tabs but to make sure I’m running a reproducible of npp I fired up a copy of a barebones portable npp8.6 and got the same results as you.</p>
<p dir="auto">After the paste the cursors looked good and was after the <code>CCCCCCCCCCCC</code> and before <code>AAAA</code> and <code>BBBB</code>.  However, the status line said I was on column 17. I switched went to another tab in Notepad and went back and the cursors jump to column 5 but the status line still says they are on 17.</p>
<p dir="auto">If I re-try the experiment then after the Ctrl-V paste I did a right arrow. The cursors went to column 30 and the status line says 30. Were someone just looking and testing they would say that npp 8.6 worked correctly other than that the status line was wrong for a moment.</p>
<p dir="auto">As the only differences between my installed copy and bare bones are DSpellCheck (1.5) and PythonScript (2) I tried disabling those plugins.</p>
<p dir="auto">The cause of the difference in results was PythonScript (2).  When I have it disabled I get your results. I tried adding PythonScript (2) to the bare bones portable but that did not break npp 8.6 enough to match what I see on my installed copy.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91085</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91085</guid><dc:creator><![CDATA[mkupper]]></dc:creator><pubDate>Sat, 09 Dec 2023 22:10:12 GMT</pubDate></item><item><title><![CDATA[Reply to Npp v8.6 cursor oddity with copy paste into a 2x0 column on Sat, 09 Dec 2023 21:24:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mkupper" aria-label="Profile: mkupper">@<bdi>mkupper</bdi></a></p>
<p dir="auto">Strange. I was about to write that I couldn’t reproduce this… then I happened to switch to a different tab and switch back. On switching back, I got the two-line cursor displayed at column 2 with the status line saying column 17.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91084</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91084</guid><dc:creator><![CDATA[Coises]]></dc:creator><pubDate>Sat, 09 Dec 2023 21:24:51 GMT</pubDate></item></channel></rss>