Skip to content

Commit 0dd3aa6

Browse files
committed
Suppress SCN_CHARADDED callback when there are active selections
Cf. #7
1 parent af8a88f commit 0dd3aa6

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/U_Npp_HTMLTag.pas

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,8 @@ procedure TNppPluginHTMLTag.DoCharAdded({%H-}const hwnd: HWND; const ch: Integer
328328
if not SupportsBigFiles then
329329
Exit;
330330
{$ENDIF}
331-
FindAndDecode(ch);
331+
if (App.ActiveDocument.Selection.Length = 0) then
332+
FindAndDecode(ch);
332333
end;
333334

334335
{ ------------------------------------------------------------------------------------------------ }

src/prj/HTMLTag.rc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
Copyright (c) Martijn Coppoolse <https://github.com/vor0nwe>
77
Revisions copyright (c) 2022-2024 Robert Di Pardo <dipardo.r@gmail.com>
88
*/
9-
#define HTMLTAG_VERSION L"1.4.3.0\0"
10-
#define HTMLTAG_VERSION_WORDS 1,4,3,0
9+
#define HTMLTAG_VERSION L"1.4.3.1\0"
10+
#define HTMLTAG_VERSION_WORDS 1,4,3,1
1111

1212
MAINICON ICON "HTMLTag.ico"
1313

@@ -29,7 +29,7 @@ BEGIN
2929
BLOCK "040904e4"
3030
BEGIN
3131
VALUE "Comments", L"https://github.com/rdipardo/nppHTMLTag/issues\0"
32-
VALUE "CompanyName", L"Voronw\0"
32+
VALUE "CompanyName", L"Voronw\x00EB\0"
3333
VALUE "FileDescription", L"HTML Tag plugin for Notepad++\0"
3434
VALUE "InternalName", L"HTMLTag\0"
3535
VALUE "LegalCopyright", L"Martijn Coppoolse\0"

0 commit comments

Comments
 (0)