mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-21 07:43:08 +02:00
Feature #934
- Feature #934, supports 'reserved.lines' to indicate a multi-line prompt for use in conjunction with 'limit:page' (thanks to Robert Gill). - Removed 'locale' from the taskrc.5 man page. - Added verbosity token 'sync'. - Fixed bug in size calculation for 'limit:page', but there is still one more. - Corrected unit test limit.t given the above fix.
This commit is contained in:
parent
9cbd729553
commit
c5ff24358c
11 changed files with 62 additions and 12 deletions
13
test/limit.t
13
test/limit.t
|
@ -79,8 +79,19 @@ like ($output, qr/^30 tasks$/ms, 'limited to 0 - unlimited');
|
|||
$output = qx{../src/task rc:limit.rc ls limit:3 2>&1};
|
||||
like ($output, qr/^30 tasks, 3 shown$/ms, 'limited to 3');
|
||||
|
||||
# Default height is 24 lines:
|
||||
# - header
|
||||
# - blank
|
||||
# - labels
|
||||
# - underline
|
||||
# - (data)
|
||||
# - blank
|
||||
# - affected
|
||||
# - reserved.lines
|
||||
# ------------
|
||||
# = 17 lines
|
||||
$output = qx{../src/task rc:limit.rc ls limit:page 2>&1};
|
||||
like ($output, qr/^30 tasks, truncated to 18 lines$/ms, 'limited to page');
|
||||
like ($output, qr/^30 tasks, truncated to 17 lines$/ms, 'limited to page');
|
||||
|
||||
# Cleanup.
|
||||
unlink qw(pending.data completed.data undo.data backlog.data limit.rc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue