You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It can happen, when attempting to create a rectangular selection using the column-block capability, that the selection contains a differing amount of characters in each row of the block. Short lines in the source for the block and line-ending characters are not in-play in this complaint.
Some more discussion on this starts in THIS discussion thread on the Community site, at this POSTING as well as further down in the long thread.
Steps to Reproduce the Issue
In a fresh 7.9.4 portable edition of N++, create the following data in a tab:
abc🦅def
abcédef
abc∑def
abc1def
Note that each of the four lines contains seven characters.
Place your caret after the c in line 1.
Hold down Shift and Alt.
While continuing to hold down the modifiers from step 4, press DownArrow four times and RightArrow once. Observe the column-block selection appears like this (correctly):
While continuing to hold down the modifiers, press RightArrow again. Observe the column-block selection appears like this (incorrect):
Expected Behavior
After step 6, expect to have two characters in each line selected, and for it to visually appear like this:
Actual Behavior
Visually as per step 6 above. In actuality, we have one character from line 1 selected and two characters selected as part of the remainder of the lines.
Debug Information
Notepad++ v7.9.4 (64-bit)
Build time : Mar 15 2021 - 01:03:10
Path : C:...............\npp.7.9.4.portable.x64\notepad++.exe
Admin mode : OFF
Local Conf mode : ON
OS Name : Windows 10 Enterprise (64-bit)
OS Version : 1909
OS Build : 18363.1379
Current ANSI codepage : 1252
Plugins : mimeTools.dll NppConverter.dll NppExport.dll
The text was updated successfully, but these errors were encountered:
The column block selection of Scintilla seems actually not to be based on columns, but on x-pixel positions in the line. This can be confirmed by using a font with variable character width. Using Arial Unicode MS and the text
And some other editors (e.g. Visual Studio's text editor) seem to do the same thing with it.
I fail to see what makes this a useful behavior.
In the past I had control over the width of a character (e.g. in the X...XXX example I could set a monospaced font -- Courier New -- to obtain one-character = one-column-width behavior), but now with certain characters I have no such choice.
Description of the Issue
It can happen, when attempting to create a rectangular selection using the column-block capability, that the selection contains a differing amount of characters in each row of the block. Short lines in the source for the block and line-ending characters are not in-play in this complaint.
Some more discussion on this starts in THIS discussion thread on the Community site, at this POSTING as well as further down in the long thread.
Steps to Reproduce the Issue
c
in line 1.Expected Behavior
After step 6, expect to have two characters in each line selected, and for it to visually appear like this:
Actual Behavior
Visually as per step 6 above. In actuality, we have one character from line 1 selected and two characters selected as part of the remainder of the lines.
Debug Information
Notepad++ v7.9.4 (64-bit)
Build time : Mar 15 2021 - 01:03:10
Path : C:...............\npp.7.9.4.portable.x64\notepad++.exe
Admin mode : OFF
Local Conf mode : ON
OS Name : Windows 10 Enterprise (64-bit)
OS Version : 1909
OS Build : 18363.1379
Current ANSI codepage : 1252
Plugins : mimeTools.dll NppConverter.dll NppExport.dll
The text was updated successfully, but these errors were encountered: