fdivitto / FabGL

ESP32 Display Controller (VGA, PAL/NTSC Color Composite, SSD1306, ST7789, ILI9341), PS/2 Mouse and Keyboard Controller, Graphics Library, Sound Engine, Game Engine and ANSI/VT Terminal

Home Page:http://www.fabglib.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`LineEditor.onSpecialChar` always triggers `CursorUp`

benedetto73 opened this issue · comments

LineEditor.onSpecialChar mistakenly always triggers LineEditorSpecialChar::CursorUp, also when CursorDown is pressed.

Root cause is a simple typo in LineEditor::edit: link

      switch (c) {
        // "ESC [ A" : cursor Up
        case 'A':
          performCursorUp();
          m_state = 0;
          break;

        // "ESC [ B" : cursor Down
        case 'B':
          performCursorUp();
          m_state = 0;
          break;