Skip to content

Commit

Permalink
Merge pull request #17 from ctrlcctrlv/master
Browse files Browse the repository at this point in the history
Fix most annoying part of #8
  • Loading branch information
FedeDP authored Oct 22, 2017
2 parents 157ba4d + 87fba36 commit 8dcdef0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ Input::Input(int y, int x,

int Input::wait(Session &sess) {
const int KEY_ESC = 27;
const int KEY_BS = 127;
const int KEY_TAB = 9;
const int KEY_ENT = 10;
wint_t c;
Expand Down Expand Up @@ -55,7 +54,7 @@ int Input::wait(Session &sess) {
}

return c;
case KEY_BS:
case KEY_BACKSPACE:
if (!input_str.empty() && col > 0) {
col--;
input_str.erase(col, 1);
Expand Down

0 comments on commit 8dcdef0

Please sign in to comment.