https://bugs.kde.org/show_bug.cgi?id=408820

            Bug ID: 408820
           Summary: indent re-aligns (incorrectly) indented if statements
                    in C code
           Product: kate
           Version: 19.04.1
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: application
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: erben...@comcast.net
  Target Milestone: ---

SUMMARY
If I highlight the entire block (select by lines, e.g set cursor in column 1
(press home key twice) and press shift down arrow until all the lines are
selected) and press Ctrl+i the block is moved to the right but the already
indented code becomes column aligned.

e.g:
        if(open_database(&mysql)) {
           log_error("ERROR!!! Failed to open database\n");
           debug_print("LEAVE\n");
           return -1;
        }
becomes
        if(open_database(&mysql)) {
        log_error("ERROR!!! Failed to open database\n");
        debug_print("LEAVE\n");
        return -1;
        }

I played with the settings for indentation but couldn't fix it

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT
            if(open_database(&mysql)) {
            log_error("ERROR!!! Failed to open database\n");
            debug_print("LEAVE\n");
            return -1;
            }


EXPECTED RESULT
            if(open_database(&mysql)) {
               log_error("ERROR!!! Failed to open database\n");
               debug_print("LEAVE\n");
               return -1;
            }


SOFTWARE/OS VERSIONS


Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: No longer reported in 'About KDE' in Kate! Why is that?!?!
Determined from other sourcesits KDE 5.58.0 Plasma 5.16.05.12.3

KDE Frameworks Version: 
Qt Version:  Unknown, how does one get this info? I think its 5.12.3

ADDITIONAL INFORMATION
Opensuse Tumbleweed x86_64

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to