Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A bug with comment/uncomment already commented lines #169

Closed
tolk-vm opened this issue Apr 23, 2024 · 1 comment
Closed

A bug with comment/uncomment already commented lines #169

tolk-vm opened this issue Apr 23, 2024 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@tolk-vm
Copy link

tolk-vm commented Apr 23, 2024

I often select a piece of code an comment it with a hotkey.

Consider having the following initial code (note, that one line is commented already):

(int) main() {
;;    int a = 0;
    return 0;
}

I select it, press comment, and get an expected result:

;;(int) main() {
;;;;    int a = 0;
;;    return 0;
;;}

Then I want to rollback it. I select, press comment again.

Expected: getting the initial code.
Actual:

(int) main() {
;    int a = 0;
    return 0;
}

(three ';' were removed instead of two)

@andreypfau andreypfau added bug Something isn't working good first issue Good for newcomers labels Apr 23, 2024
andreypfau added a commit that referenced this issue Apr 23, 2024
andreypfau added a commit that referenced this issue Apr 26, 2024
### Added

- Full support latest Tact 1.2.0 version ([#166](#166))

### Fixed

- A bug with comment/uncomment already commented
  lines ([#169](#169))
- Function parameter name hints for var arguments of same
  name ([#167](#167))
@andreypfau
Copy link
Member

Fixed in 2.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants