Skip to content

comment/uncomment with different select(highlight) direction #1419

@gbuntu127

Description

@gbuntu127

Codelite version 9.2.2
Kernel: 4.4.0-34-generic x86_64 (64 bit) Desktop: Cinnamon 3.0.7, Distro: Linux Mint 18 Sarah

Scenario:
A.this is c++ code line one
this is c++ code line two.B

  1. Select both lines use mouse, select "Edit-Comment-Comment Line". Result: both lines will be commented out.
  2. Use mouse cursor to select both lines. Specifically, click from letter A, hold and drag mouse to highlight to letter B. Select "Edit-Comment-Comment Line". Result: both lines will be added one more "//" in front. Expected: the two lines of code are un-commented.

However, if in step 2 we do "click from letter B, hold and drag highlight to letter A" (different highlight direction). Select "Edit-Comment-Comment Line". Result: both lines are correctly un-commented.

This actually happens to single line of code as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions