Skip to content

error: duplicate case value #3

@nbriz

Description

@nbriz

great addon!!! :)
i'm getting this error:

 ../../../addons/ofxTerminal/src/ofxTerminal.h|433|error: duplicate case value|

refering to this line:

        case 8:
            ishidden = !ishidden;
            break;

and then

../../../addons/ofxTerminal/src/ofxTerminal.h|248|error: previously used here

refering to this one:

        // backspace
        case OF_KEY_BACKSPACE:
            if (prompt.x > 0) {
                if (lines[cl].at(prompt.index-1) == ' ') prompt.x -= spaceWidth;
                else prompt.x -= characterWidth;
                lines[cl].erase(it+prompt.index-1);
                prompt.index--;
            }

when i comment it out, it builds/runs fine
i'm on Ubuntu 14.04 using Code::Blocks 13.12
break;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions