Incorrect numbers in collapsed sections

Problem description

When collapsing code, ie. a function definition, if or loop body, class body, whatever, the new feature that tells how many lines are hidden displays an incorrect number.

Expected behavior

For a C++ function with two lines of commands, I expect to see either 2 (the commands) or 3 ( The commands plus the closing brace) as the number of lines hidden.

Actual behavior

4 is the number displayed.

Steps to reproduce

Write a collapsible block of code, count how many lines it has, collapse it, see that the number of hidden lines is displayed wrong.

Browser

Chrome, Mobile app

OS

Windows 11, Android

Device if mobile

Android OS

Plan

N/A

@ThomasWarenski Thanks for reporting. Yeah, I can see that logic. Let me check with the team.