26a416e016
Due to lots of cases which were added and added to tree_move(), the function was not really easy to understand. For this refactoring, I wrote tree_move() from scratch, thinking about (hopefully) all cases. The testsuite still passes. The move command also has different parameters now. Instead of the hard to understand 'before v' stuff, we use 'move [left|right|up|down]'.
16 lines
231 B
C
16 lines
231 B
C
/*
|
|
* vim:ts=4:sw=4:expandtab
|
|
*/
|
|
|
|
#ifndef _MOVE_H
|
|
#define _MOVE_H
|
|
|
|
/**
|
|
* Moves the current container in the given direction (TOK_LEFT, TOK_RIGHT,
|
|
* TOK_UP, TOK_DOWN from cmdparse.l)
|
|
*
|
|
*/
|
|
void tree_move(int direction);
|
|
|
|
#endif
|