diff options
author | irungentoo <irungentoo@gmail.com> | 2013-08-01 11:11:13 -0700 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-08-01 11:11:13 -0700 |
commit | 8b4c116aa59a4f12f68240d4e02a2caffad61987 (patch) | |
tree | fd7fb97f2d9acb01a72bae341ed07333b0512e04 /testing | |
parent | d534a052648cc0085d6d6e40c22701e2feb5b416 (diff) | |
parent | 1d04ab39b4164bb59c0854d2f42127ea7f460b92 (diff) |
Merge pull request #241 from clpr/master
Add back-tab support for toxic.
Diffstat (limited to 'testing')
-rw-r--r-- | testing/toxic/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/testing/toxic/main.c b/testing/toxic/main.c index fffc3f84..cdc6dc16 100644 --- a/testing/toxic/main.c +++ b/testing/toxic/main.c | |||
@@ -305,6 +305,9 @@ int main(int argc, char* argv[]) { | |||
305 | if(ch == '\t') { | 305 | if(ch == '\t') { |
306 | w_active = (w_active + 1) % w_num; | 306 | w_active = (w_active + 1) % w_num; |
307 | } | 307 | } |
308 | else if(ch == KEY_BTAB) { | ||
309 | w_active = (w_active + w_num - 1) % w_num; | ||
310 | } | ||
308 | else if(ch != ERR) { | 311 | else if(ch != ERR) { |
309 | a->onKey(a, ch); | 312 | a->onKey(a, ch); |
310 | } | 313 | } |