bug – EmEditor (Text Editor) https://www.emeditor.com Best Text Editor, Code Editor, CSV Editor, Large File Viewer for Windows (Free versions available) Mon, 15 Aug 2022 13:23:54 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.5 regex highlights wrong search results, extracts correct results…. https://www.emeditor.com/forums/topic/regex-highlights-wrong-search-results-extracts-correct-results/ Mon, 15 Aug 2022 13:21:46 +0000 https://www.emeditor.com/forums/topic/regex-highlights-wrong-search-results-extracts-correct-results/ I was doing a regex search
(?:[A-Z]{2}),0,.*$
And I got some matches like this

`
2019-01-14,04:00,UK,2,LME Copper Inventories,0,,100,,109664
2019-01-22,04:00,UK,2,LME Copper Inventories,0,,9925,,109676
2019-03-10,03:00,CA,0,Daylight Saving Time Shift,,,,,99633
2019-03-10,03:00,US,0,Daylight Saving Time Shift,,,,,99628
2019-03-30,21:00,EZ,0,Daylight Saving Time Shift,,,,,99639
2019-03-30,21:00,SZ,0,Daylight Saving Time Shift,,,,,99640
2019-03-30,21:00,UK,0,Daylight Saving Time Shift,,,,,99636
2019-04-01,04:00,UK,2,LME Copper Inventories,0,,-1425,,109766
2019-04-06,10:00,NZ,0,Daylight Saving Time Shift,,,,,103783
2019-04-06,12:00,AU,0,Daylight Saving Time Shift,,,,,103782
2019-09-28,10:00,NZ,0,Daylight Saving Time Shift,,,,,103788
2019-10-05,12:00,AU,0,Daylight Saving Time Shift,,,,,103785
2019-10-26,22:00,EZ,0,Daylight Saving Time Shift,,,,,99645
2019-10-26,22:00,SZ,0,Daylight Saving Time Shift,,,,,99642
2019-10-26,22:00,UK,0,Daylight Saving Time Shift,,,,,99644
2019-11-03,02:00,CA,0,Daylight Saving Time Shift,,,,,99631
2019-11-03,02:00,US,0,Daylight Saving Time Shift,,,,,99629
2020-03-08,03:00,CA,0,Daylight Saving Time Shift,,,,,110757
2020-03-08,03:00,US,0,Daylight Saving Time Shift,,,,,110756
2020-03-28,21:00,EZ,0,Daylight Saving Time Shift,,,,,110761
2020-03-28,21:00,SZ,0,Daylight Saving Time Shift,,,,,110762
2020-03-28,21:00,UK,0,Daylight Saving Time Shift,,,,,110760
2020-04-04,10:00,NZ,0,Daylight Saving Time Shift,,,,,113617
2020-04-04,12:00,AU,0,Daylight Saving Time Shift,,,,,113812
2020-06-23,09:59,US,1,Richmond Manufacturing Index,0,-3,-27,,113876
2020-09-26,10:00,NZ,0,Daylight Saving Time Shift,,,,,113618
`
and I extracted the matches to be sure.

Highlighted portion would be
`
es,0,,100,,109664
es,0,,9925,,109676
CA,0,Daylight Saving Time Shift,,,,,99633
US,0,Daylight Saving Time Shift,,,,,99628

es,0,,-1425,,109766

ex,0,-3,-27,,113876
`


Then I added some “flags”, specifically the case sensitive flag (?i) and (?-i)

(?-i)(?:[A-Z]{2})(?i),0,.*$

and then press “select all” button like I always do, to see the match count and highlights

The correct matches are

`
2019-03-10,03:00,CA,0,Daylight Saving Time Shift,,,,,99633
2019-03-10,03:00,US,0,Daylight Saving Time Shift,,,,,99628
2019-03-30,21:00,EZ,0,Daylight Saving Time Shift,,,,,99639
2019-03-30,21:00,SZ,0,Daylight Saving Time Shift,,,,,99640
2019-03-30,21:00,UK,0,Daylight Saving Time Shift,,,,,99636
2019-04-06,10:00,NZ,0,Daylight Saving Time Shift,,,,,103783
2019-04-06,12:00,AU,0,Daylight Saving Time Shift,,,,,103782
2019-09-28,10:00,NZ,0,Daylight Saving Time Shift,,,,,103788
2019-10-05,12:00,AU,0,Daylight Saving Time Shift,,,,,103785
2019-10-26,22:00,EZ,0,Daylight Saving Time Shift,,,,,99645
2019-10-26,22:00,SZ,0,Daylight Saving Time Shift,,,,,99642
2019-10-26,22:00,UK,0,Daylight Saving Time Shift,,,,,99644
2019-11-03,02:00,CA,0,Daylight Saving Time Shift,,,,,99631
2019-11-03,02:00,US,0,Daylight Saving Time Shift,,,,,99629
2020-03-08,03:00,CA,0,Daylight Saving Time Shift,,,,,110757
2020-03-08,03:00,US,0,Daylight Saving Time Shift,,,,,110756
2020-03-28,21:00,EZ,0,Daylight Saving Time Shift,,,,,110761
2020-03-28,21:00,SZ,0,Daylight Saving Time Shift,,,,,110762
2020-03-28,21:00,UK,0,Daylight Saving Time Shift,,,,,110760
2020-04-04,10:00,NZ,0,Daylight Saving Time Shift,,,,,113617
2020-04-04,12:00,AU,0,Daylight Saving Time Shift,,,,,113812
2020-09-26,10:00,NZ,0,Daylight Saving Time Shift,,,,,113618
`

highlighted portion should only be

`
CA,0,Daylight Saving Time Shift,,,,,99633
US,0,Daylight Saving Time Shift,,,,,99628

`

**But the incorrect matches were still highlighted, even though they were NOT selected**. And I can confirm when the extraction was done, only the rows that had a correct match were extracted.

I tried to Erase Find Highlight and do the search again. And I can confirm the search still highlights incorrect search portions in the full document. This makes no sense. What logic is the highlighter using to highlight text that would not even match?

I suspect that the highlighter is not respecting certain regex flags…which is weird as the highlighter should be following the same logic as the selector, isn’t it?

I can produce a screen video if you don’t believe me.

]]>
Line number did not display properly in new verion (v19.6.0 x64, win 10) https://www.emeditor.com/forums/topic/line-number-did-not-display-properly-in-new-verion-v19-6-0-x64-win-10/ Mon, 17 Feb 2020 18:42:30 +0000 https://www.emeditor.com/forums/topic/line-number-did-not-display-properly-in-new-verion-v19-6-0-x64-win-10/ Hi there,

The Line number can’t display correctly after having upgraded to v19.6.0 (64bit, win 10 pro OS). Anyone has the same problem as me?

]]>
Serious bug regarding macros mapped to shortcuts! https://www.emeditor.com/forums/topic/serious-bug-regarding-macros-mapped-to-shortcuts/ Fri, 27 Oct 2017 12:39:14 +0000 https://www.emeditor.com/forums/topic/serious-bug-regarding-macros-mapped-to-shortcuts/ I just found a serious bug regarding macros mapped to shortcuts.

I have several such mappings configured in my EmEditor, and when I create and insert a new macro and insert it before any such shortcut-mapped macros, all mappings of shortcuts to macros that are after it in the defined macro order (i.e. the order in which the macros appear in the macro toolbar and the “Customize macros” dialog box) will shift, i.e. the shortcut mappings of those will now point to other macros than before!

This is very dangerous (depending on what the macros do of course), and it is seemingly because the mappings of the shortcuts point at indexes in the macro list, rather than the macro items/files in the list themselves (i.e. no matter if they are moved in the list or not. in this case by having other macros inserted before them).

This should probably be fixed ASAP in order to avoid accidents that may cause data loss for customers.

]]>
Another filter problem after upgrading https://www.emeditor.com/forums/topic/another-filter-problem-after-upgrading/ Wed, 06 Sep 2017 11:17:01 +0000 https://www.emeditor.com/forums/topic/another-filter-problem-after-upgrading/ Similar to the other bug report I filed the other day, I just found another way in which the filter doesn’t work as expected anymore after I updated EmEditor. I have no idea if this problem is only in the recent version of EmEditor or has been there for much longer than that, but what I do know it that I have never seen this problem before either, and I’m a heavy user of the filter functionality in EmEditor

Here is a proof of concept for reproduction of the bug:
——————————————————————————

Input CSV file (only containing one column, but the bug behavior does not appear if loaded as normal text file, so it must be loaded as CSV):

something here
TEST\something.exe
TEST\something.exe

Source code of the macro that is executed on it (with a shortcut key, while CSV mode is active, and either the cell cursor is only placed on the entire middle “TEST\something.exe” cell, OR any arbitrary substring is selected inside this cell):

if(document.CellMode)
{
	document.Filter(document.selection.Text, document.selection.GetActivePointX(eePosCell), eeFindKeepPrevious | eeFindNegative);
}
else
{
	document.Filter(document.selection.Text, 0, eeFindKeepPrevious | eeFindNegative);
}

The expected result is that only line 1 should remain visible, but what happens is that ALL lines remain visible.

My guess is that the following has something to do with:

1.
The “Use Escape Sequence” option is automatically used in the created filter now (but not before?), which then chokes on the “\s” embedded in this string.

2.
No matter if I select any substring inside the cell before executing the macro with my shortcut key for it, the entire text of the cell is still reported in “document.selection.Text” in the macro code, which has not been the case previuosly, which I thus assume is a bug too?

Could you possibly please take a look at this as soon as possible, since it is currently breaking my entire workflow and use case for EmEditor?

]]>
Critical bug introduced in Filter functionality in last version(s)! https://www.emeditor.com/forums/topic/critical-bug-introduced-in-filter-functionality-in-last-versions/ Mon, 04 Sep 2017 22:39:11 +0000 https://www.emeditor.com/forums/topic/critical-bug-introduced-in-filter-functionality-in-last-versions/ I just updated to the most recent EmEditor, and got a nasty surprise when trying to use my usual filter macro in cell mode – It now removed lines that it should not remove, i.e. the filter functionality has been broken!

Here is a proof of concept for reproduction of the bug:
——————————————————————————

Input CSV file:

1,/cgi-bin/listserv/wa.exe?SHOWTPL=<script>alert(/openvas-xss-test/)</script>
2,abcd
3,/scripts/wa.exe?SHOWTPL=<script>alert(/openvas-xss-test/)</script>

Source code of the macro that is executed on it (while CSV mode is active, and the string “openvas” is selected in the editor window):

if(document.CellMode)
{
	document.Filter(document.selection.Text, document.selection.GetActivePointX(eePosCell), eeFindKeepPrevious);
}
else
{
	document.Filter(document.selection.Text, 0, eeFindKeepPrevious);
}

The expected result is that only line 2 should be filtered away, leaving line 1 and 3 visible, BUT instead line 3 is also removed, leaving only line 1 visible!

NOTE: This bug only seems to happen in Cell mode (CSV in my case), but NOT in normal document mode even if using the exact same document contents, which may be an important fact for your bug reproduction/debugging!

What makes me even more scared is that if I remove the “<script>” and “</script>” parts from the cell contents, it works as expected again, so this might even be some kind of unintended script execution vulnerability/bug in EmEditor or similar (similar to cross-site scripting on web pages)!

Could you please take a look at this as soon as possible, since it is breaking my entire use case for EmEditor, and may even be some kind of security vulnerability!?

]]>
Block mode paste repeats first line https://www.emeditor.com/forums/topic/block-mode-paste-repeats-first-line/ Sun, 02 Jul 2017 02:46:33 +0000 https://www.emeditor.com/forums/topic/block-mode-paste-repeats-first-line/ It seems to depend on the line endings of the source text – in this case I am copying from SQL Server Management Studio. If I paste into Excel first and re-copy then it pastes correctly into EmEditor.

]]>
Inconsistent mode when filtering out row when in cell edit mode https://www.emeditor.com/forums/topic/inconsistent-mode-when-filtering-out-row-when-in-cell-edit-mode/ Wed, 25 May 2016 19:53:02 +0000 https://www.emeditor.com/forums/topic/inconsistent-mode-when-filtering-out-row-when-in-cell-edit-mode/ If I’m using cell selection mode, and I’m at the same time is inside a cell, in cell edit mode (i.e. moving the cursor inside the cell, selecting parts of its contents) and then filter away that line (using a macro executed by a shortcut), EmEditor will then get into an inconsistent mode, where it’s seemingly still in cell edit mode (cell is surrounded by dark-green border, and cursor is shown), but the cursor can be moved outside of the selected cell (e.g. into the cell to the left of that cell).

]]>
External Tools get filtered-out lines in their $(CurText) input https://www.emeditor.com/forums/topic/external-tools-get-filtered-out-lines-in-their-curtext-input/ Wed, 18 May 2016 13:12:13 +0000 https://www.emeditor.com/forums/topic/external-tools-get-filtered-out-lines-in-their-curtext-input/ If I have defined an External Tool that takes “Custom” input, and then define this custom input as “$(CurText)”, there is a bug that sends also any filtered-out lines inside the selectiong as input to this External Tool when multiple lines are selected.

For example, if you have the following lines in your document:

111
222
333
444

And then I create a filter that removes all lines containing “222” and “333”, resulting in the following appearance in the editor:

111
444

If I now select both these lines, and then execute my External Tool, it will still get all the four lines as input (i.e. “111”, “222”, “333” and “444”), which seems like an obvious bug to me, right?

]]>
Menu Icons ugly on Retina Displays https://www.emeditor.com/forums/topic/menu-icons-ugly-on-retina-displays/ Tue, 12 Jan 2016 11:05:43 +0000 https://www.emeditor.com/forums/topic/menu-icons-ugly-on-retina-displays/ Microsoft Surface Pro 4 has a high-res display with a default 200% scaling.

Set it to 100% and you need a microscope to find your cursor.

EmEditor currently doesn’t look that pretty on a 200% scaling.

]]>
Block-Text Copy+Paste – Not sure if bug or lack of know-how https://www.emeditor.com/forums/topic/block-text-copypaste-not-sure-if-bug-or-lack-of-know-how/ Thu, 23 Apr 2015 15:13:34 +0000 https://www.emeditor.com/forums/topic/block-text-copypaste-not-sure-if-bug-or-lack-of-know-how/ Not sure if this is really a bug or if I just don’t know how to do it right, but somehow I have problems on copy paste of multiline text blocks.

Attached is a screencast : https://docs.google.com/file/d/0B4Wct2k6EydmYktyMTlfVEU3b00/edit?pli=1

Version 15.0.2

Example: When I copy this block, and I want to paste it as column selector …. it should copy+paste a.b.c.d instead of just a-character?! ( Check the screencast )
aaaaaa
bbbbbb
cccccc
dddddd

]]>