bug: deletion of text by tab/enter
-
Bug?
entering text works fine, including space. however, when inserting a ‘tab’ or ‘enter’, the hole text is delete, curser is back at beginning, first lineNPP: v8.1.9.3 (32-bit)
-
@bert-scholz
Obviously this would be a big problem if that was the default behaviour,
i.e. either you’re doing something extra that you didn’t describe, using a plugin that malfunctions or just … ? -
- dont’ see what I am doing extra - working in win editor works fine
- several plugins installed, but none seems performing an action
- also no macro active
-
@bert-scholz
Can you record a screencast and post it at https://imgur.com?
Can you also post all your debug info? (Accessible via the last menu item, the ? menu) -
Debug info:
Notepad++ v8.1.9.3 (32-bit)
Build time : Dec 6 2021 - 19:16:45
Path : C:\Program Files (x86)\Notepad++\notepad++.exe
Command Line :
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
OS Name : Windows 10 Enterprise (64-bit)
OS Version : 1909
OS Build : 18363.2212
Current ANSI codepage : 1252
Plugins : ComparePlugin.dll DSpellCheck.dll Explorer.dll JSMinNPP.dll mimeTools.dll NppConverter.dll NppExport.dll NPPJSONViewer.dll nppplugin_solutionhub.dll nppplugin_solutionhub_ui.dll nppplugin_svn.dll nppRegEx.dll ReloadButton.dll sql.dll Tidy2.dll XMLTools.dllUnfortunately, no screencast possible.
-
@bert-scholz
Finally found it:
Menu ‘Macro’ -> ‘Modify Shortcut/Delete Macro…’ -> ‘Scintilla commands’:- SCI_NEWLINE: change to e.g. Shift+Enter
- SCI_TAB: change to e.g. Shift+Tab
No need to change the shortcuts in ‘Main Menu’ (e.g. ‘Insert Blank Line Below Current’ can stay as is).
wierd, Scintilla using common keys as shortcut …
-
If that works for you, that’s fine, but really it should have worked with these settings and probably does for most.
-
Had the same issue… was creating a new cmd file, edit, and then the first line would just clear one pressing Enter, removed the scintilla commands for enter and tab and seems to work fine. Issue came out of the sudden, last intervention I did was adding autohotkey support. Thanks, A Former User!
On a 2nd note, it introduced a new bug, new line is now not CRLF but CR only regardless of the settings. So I’ve removed the shortcut entries for the scintilla on the changes made prior, all are default now, but that batch enter bug will eventually return.