Changeset 3041fef1 in mainline
- Timestamp:
- 2009-12-01T21:52:12Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 089d746, 0f24c57
- Parents:
- e228280
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/input.c
re228280 r3041fef1 39 39 #include <errno.h> 40 40 #include <assert.h> 41 #include <macros.h>42 41 #include <bool.h> 43 42 … … 264 263 static void tinput_seek_vertical(tinput_t *ti, seek_dir_t dir) 265 264 { 266 if (dir == seek_forward) 267 ti->pos = min(ti->pos + ti->con_cols, ti->nc); 268 else 269 ti->pos = max(0, ti->pos - ti->con_cols); 265 if (dir == seek_forward) { 266 if (ti->pos + ti->con_cols <= ti->nc) 267 ti->pos = ti->pos + ti->con_cols; 268 } else { 269 if (ti->pos - ti->con_cols >= 0) 270 ti->pos = ti->pos - ti->con_cols; 271 } 270 272 271 273 tinput_position_caret(ti);
Note:
See TracChangeset
for help on using the changeset viewer.