Author Topic: B6: C++ comment quirk  (Read 1355 times)


  • Senior Community Member
  • Posts: 331
  • Hero Points: 10
B6: C++ comment quirk
« on: October 08, 2014, 09:31:19 pm »
Win7x64 - brief keymode
In a C++ file I saw the following:
Code: [Select]
// AA
// BB[cursor here at end of line]
// CC

Now hit delete and the CC moves up with the "//" removed (cool) and one space to the right of the cursor (because there's a space between "//" and the comments)
Code: [Select]
// AA
// BB[cursor] CC

Now hit enter again and CC will go to the newline with "//" prepended but with AN ADDITIONAL space added in:
Code: [Select]
// AA
// BB[cursor]
//  CC

Keep tapping delete/return and spaces will keep getting added, causing CC to be expanded out.