1. Andrey Lesnikov
  2. tiny modal ncurses editor

Commits

Andrey Lesnikov  committed a02f9d3

Employed 'BS' - replaced magic number in insert().

  • Participants
  • Parent commits bcf61b4
  • Branches default

Comments (0)

Files changed (1)

File e.c

View file
  • Ignore whitespace
     if(c[0] == exitchar){
       sprintf(statusline, "normal mode");
       return;
-    }else if(c[0] == 0x7f/*backspace*/){
+    }else if(c[0] == BS){
       move_prevch();
       removechar();
     }else{