EmEditor (text editor) Forum Index
   EmEditor Core Bug Reports
     broken auto-indent with array in C++ configuration
Register To Post

Flat Previous Topic | Next Topic
Poster Thread
supercoolm
Posted on: 10/31/2011 5:26 pm
Just popping in
Joined: 7/28/2009
From:
Posts: 7
broken auto-indent with array in C++ configuration
with the following code



uint32_t* init_temparray(){
    uint16_t tempArray[] = { 0x0000, 0x0000, 0x0000, 0x0000, 0x0000 };
    .
    .
    .
    return tempArray;
}


when I want to change value of the array, EmEditor automatically re-indent the line by removing all indentation of that line.

when I move cursor to last 16-bit integer value and press 2, I expected this.

uint32_t* init_temparray(){
    uint16_t tempArray[] = { 0x0000, 0x0000, 0x0000, 0x0000, 0x00002 };
    .
    .
    .
    return tempArray;
}



but EmEditor automatically modifies to code to

uint32_t* init_temparray(){
uint16_t tempArray[] = { 0x0000, 0x0000, 0x0000, 0x0000, 0x00002 };
    .
    .
    .
    return tempArray;
}


with some trial and error, it looks like this only happens when curly brackets is in the line (i.e. array definition)

Is there a way to correct this behaviour without disabling other features?
Flat Previous Topic | Next Topic


Subject Poster Date
 » broken auto-indent with array in C++ configuration supercoolm 10/31/2011 5:26 pm
     Re: broken auto-indent with array in C++ configuration Yutaka 11/2/2011 10:27 am
       Re: broken auto-indent with array in C++ configuration CrashNBurn 11/2/2011 10:39 am
         Re: broken auto-indent with array in C++ configuration supercoolm 11/24/2011 11:22 am

Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文