[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [kdevelop] [Bug 318263] New: auto-correction incorrectly changes dot to arrow
From:       Ambroz Bizjak <ambrop7 () gmail ! com>
Date:       2013-04-12 20:37:03
Message-ID: bug-318263-17878 () http ! bugs ! kde ! org/
[Download RAW message or body]

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

            Bug ID: 318263
           Summary: auto-correction incorrectly changes dot to arrow
    Classification: Unclassified
           Product: kdevelop
           Version: 4.4.1
          Platform: Gentoo Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Language Support: CPP
          Assignee: kdevelop-bugs-null@kde.org
          Reporter: ambrop7@gmail.com

Auto-correction will sometimes incorrectly change a dot to an arrow. To
reproduce, start with the following code, and save it to a .c file.

struct foo { int x; };
void func (void) {
}

Once it's saved, type the following into the body of the function (type
everything):

struct foo f; // wait some time for the parser here
&f.x;

While typing the second statement, "." is changed to "->" as it is typed, even
though the former is valid C code, and the auto-corrected version is invalid
(type error because "&f->x" is parsed as "&(f->x)").

Note that this bug doesn't happen every time. Some editing, saving and waiting
may be required to reproduce it.

Reproducible: Sometimes

-- 
You are receiving this mail because:
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic