<?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[SurroundSelection sometimes hijacks shortcut Ctrl+Shift+2]]></title><description><![CDATA[<p dir="auto">I’m pasting in the <a href="https://github.com/dail8859/SurroundSelection/issues/16" rel="nofollow ugc">issue</a> I submitted over at dail’s SurroundSelection project.</p>
<p dir="auto">I (and maybe also dail) would like to know if other people are seeing the same behavior.</p>
<p dir="auto">====</p>
<p dir="auto">When SurrSel is enabled, and text is selected, shortcut Ctrl+Shift+2 results in a SurrSel-like action where the text is surrounded by a pair of <code>NUL</code>:</p>
<p dir="auto"><img src="https://camo.nodebb.org/091a057726bbf5d6c1b67551a6747f6a3ccf11da?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F62523825%2F221378472-78dab169-a0c3-4f61-8cce-94af3b8d81fd.png" alt="image" class=" img-fluid img-markdown" /></p>
<p dir="auto">… rather than the default action of jumping to the previous instance of text with “Style 2”.</p>
<p dir="auto">Problem goes away when SurrSel is disabled.</p>
<p dir="auto">If no text is selected, the shortcut does the expecting jumping.</p>
<pre><code>Notepad++ v8.4.9   (64-bit)
Build time : Jan 27 2023 - 03:11:16
Path : C:\Users\Guest!\Downloads\npp.8.4.9.portable.x64\notepad++.exe
Command Line : 
Admin mode : OFF
Local Conf mode : ON
Cloud Config : OFF
OS Name : Windows 10 Pro (64-bit) 
OS Version : 21H2
OS Build : 19044.2604
Current ANSI codepage : 1252
Plugins : 
    mimeTools (2.9)
    NavigateTo (2.4.1)
    NppConverter (4.5)
    NppExec (0.8.2)
    NppExport (0.4)
    PythonScript (2)
    SurroundSelection (1.4.1)
    VisualStudioLineCopy (1.0.0.2)
    _CustomizeToolbar (5.3)
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/topic/24182/surroundselection-sometimes-hijacks-shortcut-ctrl-shift-2</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 12:25:40 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/24182.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 25 Feb 2023 23:13:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SurroundSelection sometimes hijacks shortcut Ctrl+Shift+2 on Wed, 01 Mar 2023 02:35:42 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">Norton prevents extracting dll from downloaded zip).</p>
</blockquote>
<p dir="auto">If anyone visiting this thread is in similar circumstances, AppVeyor artifacts will be online until about MAR-28-2023:</p>
<ul>
<li><a href="https://ci.appveyor.com/project/dail8859/surroundselection/builds/46370230/job/87bvtws6jm0826ne/artifacts" rel="nofollow ugc">SurroundSelection (patched) x64</a></li>
<li><a href="https://ci.appveyor.com/project/dail8859/surroundselection/builds/46370230/job/31drlq1oyh39t6sv/artifacts" rel="nofollow ugc">SurroundSelection (patched) Win32</a></li>
</ul>
]]></description><link>https://community.notepad-plus-plus.org/post/84508</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84508</guid><dc:creator><![CDATA[rdipardo]]></dc:creator><pubDate>Wed, 01 Mar 2023 02:35:42 GMT</pubDate></item><item><title><![CDATA[Reply to SurroundSelection sometimes hijacks shortcut Ctrl+Shift+2 on Sun, 26 Feb 2023 23:40:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rdipardo" aria-label="Profile: rdipardo">@<bdi>rdipardo</bdi></a> Thanks for the prompt attention. As it turns out I can’t test the fix for a day or a few (due to: house sitting, guest account, Norton prevents extracting dll from downloaded zip).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/84446</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84446</guid><dc:creator><![CDATA[Neil Schipper]]></dc:creator><pubDate>Sun, 26 Feb 2023 23:40:40 GMT</pubDate></item><item><title><![CDATA[Reply to SurroundSelection sometimes hijacks shortcut Ctrl+Shift+2 on Sun, 26 Feb 2023 21:56:14 GMT]]></title><description><![CDATA[<p dir="auto">This appears to fix it:</p>
<pre><code class="language-diff">diff --git a/src/Main.cpp b/src/Main.cpp
index 2b159ef..030e2db 100644
--- a/src/Main.cpp
+++ b/src/Main.cpp
@@ -77,8 +77,11 @@ static void prepareKeyboardChars() {
 	kbProcessChars.clear();
 
 	// Default characters
-	for (UCHAR c : "\"'(){}[]&lt;&gt;`")
+	const char *defaultChars = "\"'(){}[]&lt;&gt;`";
+	for (unsigned i = 0; defaultChars[i]; i++) {
+		UCHAR c = (UCHAR)defaultChars[i];
 		processChars[c] = TRUE;
+	}
 
 	// Add user defined
 	for (SIZE_T i = 0, j = _tcslen(addChars); i &lt; j; i++)
</code></pre>
<p dir="auto">Explanation and patched binaries <a href="https://github.com/dail8859/SurroundSelection/issues/16#issuecomment-1445250051" rel="nofollow ugc">here</a>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/84444</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84444</guid><dc:creator><![CDATA[rdipardo]]></dc:creator><pubDate>Sun, 26 Feb 2023 21:56:14 GMT</pubDate></item><item><title><![CDATA[Reply to SurroundSelection sometimes hijacks shortcut Ctrl+Shift+2 on Sun, 26 Feb 2023 17:08:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/neil-schipper" aria-label="Profile: Neil-Schipper">@<bdi>Neil-Schipper</bdi></a> said in <a href="/post/84436">SurroundSelection sometimes hijacks shortcut Ctrl+Shift+2</a>:</p>
<blockquote>
<p dir="auto">I (and maybe also dail) would like to know if other people are seeing the same behavior.</p>
</blockquote>
<p dir="auto">Oh, yeah - me too!  I never use that key combo though so would probably never have noticed it.</p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/84440</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84440</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Sun, 26 Feb 2023 17:08:28 GMT</pubDate></item></channel></rss>