pkulchenko / ZeroBraneStudio

Lightweight Lua-based IDE for Lua with code completion, syntax highlighting, live coding, remote debugger, and code analyzer; supports Lua 5.1, 5.2, 5.3, 5.4, LuaJIT and other Lua interpreters on Windows, macOS, and Linux
http://studio.zerobrane.com/
Other
2.6k stars 519 forks source link

Can't delete commented out lines with DEL #1111

Closed xenomeno closed 3 years ago

xenomeno commented 3 years ago

If I have selected several lines of code and try to delete them with DEL it does not work if some of them are commented out, e.g. start with --

Using BACKSPACE or cut from the context menu works just fine. If the selected lines do not have commented out ones DEL works just fine.

image

pkulchenko commented 3 years ago

@xenomeno, thank you for the report. I don't think it's about the commented lines per se; I think it's related to the formatting inside those commented lines. Can you show the exact text you have in the comment with the minimal example?

xenomeno commented 3 years ago

Hello,

Yes, I am attaching it as a ZIP. It seems it is because of the * symbols(don't seem so special to me though).

Hope this helps. DEL_Problem.zip

Cheers

pkulchenko commented 3 years ago

Here is the code from the archive:

-- OK

-- NOT OK ******************************************************************
-- ******************************************************************
-- ******************************************************************

-- ***************

I can't reproduce the issue. I tried selecting various lines on both 1.90 and the current master and Del deletes selected lines without any issues. Can you describe what lines you have selected?

xenomeno commented 3 years ago

If you select the first line marked with OK the deletion works. If you select the one marked with Not OK it does not(the one with the symbols). It seems the lines containing are causing the problem for me.

It is not a big issue and I can live with it. I am with some dark theme and I can send you some configuration file if needed. My OS is Windows 10

pkulchenko commented 3 years ago

For some reason I can't reproduce this issue. There are some combinations that won't work (for example, ctrl-Backspace should delete a word on the left of the cursor on Windows, but may not inside those comments with markup), but Del and Backspace always work for me. I'm closing this with Can't reproduce label, but if you have some additional details on this, feel free to update the ticket and I'll investigate.