<?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[Selected character and row count]]></title><description><![CDATA[<p dir="auto">Suggestion:<br />
if col==1 and lines&gt;1 then lines=lines-1 and chars=chars-2 (CR+LF) or chars=chars-1 (LF or CR).</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/16979/selected-character-and-row-count</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 12:29:31 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/16979.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 20 Jan 2019 15:54:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Selected character and row count on Mon, 21 Jan 2019 01:43:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/8672">@REVerdi</a></p>
<p dir="auto">Your first point:</p>
<blockquote>
<p dir="auto">the selected character count includes the hidden characters (CR+LF in Windows)…they should not be counted.</p>
</blockquote>
<p dir="auto">Hmmm, guess I don’t see why they shouldn’t be included in the count; they are there, taking up space.</p>
<p dir="auto">I agree with you on your second point; see this thread I created a long time ago:  <a href="https://notepad-plus-plus.org/community/topic/13087/sel-in-status-bar-is-off-by-1-on-line-count" rel="nofollow ugc">https://notepad-plus-plus.org/community/topic/13087/sel-in-status-bar-is-off-by-1-on-line-count</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/38726</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/38726</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 21 Jan 2019 01:43:57 GMT</pubDate></item><item><title><![CDATA[Reply to Selected character and row count on Sun, 20 Jan 2019 23:28:33 GMT]]></title><description><![CDATA[<p dir="auto">OK, sorry! In fact, not to mention that the “pseudocode” is not correct.</p>
<p dir="auto">In the status bar of Notepad++, there is an indicator of the current row and column and of selected characters and rows. Something like</p>
<p dir="auto">Ln: 1   Col : 1   Sel 0 | 0</p>
<p dir="auto">If the selected text starts on one line and ends on another, the selected character count includes the hidden characters (CR+LF in Windows). In my opinion, they should not be counted.</p>
<p dir="auto">If the selected text starts on one line and ends on another, the line count includes the ending line, even if the caret is in column 1 of that line. In my opinion, if the caret is in column 1 of the final line, it should not be counted.</p>
<p dir="auto">I hope I have been clearer now.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/38725</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/38725</guid><dc:creator><![CDATA[REVerdi]]></dc:creator><pubDate>Sun, 20 Jan 2019 23:28:33 GMT</pubDate></item><item><title><![CDATA[Reply to Selected character and row count on Sun, 20 Jan 2019 16:01:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/8672">@REVerdi</a></p>
<p dir="auto">I think you are going to have to say a bit more on that before people are really going to understand your meaning…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/38719</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/38719</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 20 Jan 2019 16:01:04 GMT</pubDate></item></channel></rss>