eranif / codelite

A multi purpose IDE specialized in C/C++/Rust/Python/PHP and Node.js. Written in C++
https://codelite.org
GNU General Public License v2.0
2.09k stars 448 forks source link

[Bug]: The command "Edit > Comment > Comment Line" removes one character too much when uncommenting #3293

Open apisnu opened 6 months ago

apisnu commented 6 months ago

What happened?

When I edit a python source code file (.py) and I comment a line (or block) of code with Edit > Comment > Comment Line it correctly adds a # in front of each line. But when uncommenting the line it removes the # and the following character, i.e. it removes one character too much.

For example: #class A: becomes lass A:

I'm using version 17.0-1unofficial.jammy from the official apt repo. Help > About... says it's version 17.0.0.

Version

Other

Operating system

Linux

Steps to reproduce

No response

Relevant log output

No response

wayne-zhang commented 5 months ago

Can be reproduce in 17.0.8 on Windows.