File ChangeLog changed (mode: 100644) (index ab7172f12..fee139e93) |
14 |
14 |
instead of getmntent() API). The regression was apparently introduced in |
instead of getmntent() API). The regression was apparently introduced in |
15 |
15 |
v0.9.1-beta. Thanks to sublimal. |
v0.9.1-beta. Thanks to sublimal. |
16 |
16 |
|
|
|
17 |
|
Fixed a crash on drawing a tree-view when {ext} or {fileext} follows |
|
18 |
|
{name}, {iname}, {root} or {fileroot}. Thanks to aw-cloud. |
|
19 |
|
|
17 |
20 |
0.14-beta to 0.14 (2025-02-08) |
0.14-beta to 0.14 (2025-02-08) |
18 |
21 |
|
|
19 |
22 |
Improved documentation on zh/zl menu keys a bit. |
Improved documentation on zh/zl menu keys a bit. |
File src/ui/fileview.c changed (mode: 100644) (index 536fe01d2..75ab2e78d) |
... |
... |
column_line_print(const char buf[], int offset, AlignType align, |
1256 |
1256 |
wprinta(view->win, print_buf + match_from, &line_attrs, |
wprinta(view->win, print_buf + match_from, &line_attrs, |
1257 |
1257 |
A_REVERSE | A_UNDERLINE); |
A_REVERSE | A_UNDERLINE); |
1258 |
1258 |
} |
} |
|
1259 |
|
|
|
1260 |
|
/* Use a given prefix value at most once. */ |
|
1261 |
|
*cdt->prefix_len = 0; |
1259 |
1262 |
} |
} |
1260 |
1263 |
|
|
1261 |
1264 |
/* Draws current line number at specified column. */ |
/* Draws current line number at specified column. */ |
File tests/misc/ui.c changed (mode: 100644) (index 5510c78d2..4a3084c71) |
8 |
8 |
#include "../../src/cfg/config.h" |
#include "../../src/cfg/config.h" |
9 |
9 |
#include "../../src/ui/color_scheme.h" |
#include "../../src/ui/color_scheme.h" |
10 |
10 |
#include "../../src/ui/colored_line.h" |
#include "../../src/ui/colored_line.h" |
|
11 |
|
#include "../../src/ui/column_view.h" |
11 |
12 |
#include "../../src/ui/fileview.h" |
#include "../../src/ui/fileview.h" |
12 |
13 |
#include "../../src/ui/tabs.h" |
#include "../../src/ui/tabs.h" |
13 |
14 |
#include "../../src/ui/statusline.h" |
#include "../../src/ui/statusline.h" |
14 |
15 |
#include "../../src/ui/ui.h" |
#include "../../src/ui/ui.h" |
15 |
16 |
#include "../../src/utils/str.h" |
#include "../../src/utils/str.h" |
|
17 |
|
#include "../../src/cmd_core.h" |
16 |
18 |
#include "../../src/filelist.h" |
#include "../../src/filelist.h" |
17 |
19 |
|
|
|
20 |
|
#include "utils.h" |
|
21 |
|
|
18 |
22 |
static void check_tab_title(const tab_info_t *tab_info, const char text[]); |
static void check_tab_title(const tab_info_t *tab_info, const char text[]); |
19 |
23 |
static char * identity(const char path[]); |
static char * identity(const char path[]); |
20 |
24 |
|
|
|
... |
... |
TEST(mouse_map_tlsview) |
566 |
570 |
assert_int_equal(FVM_NONE, fview_map_coordinates(&lwin, 6, 5)); |
assert_int_equal(FVM_NONE, fview_map_coordinates(&lwin, 6, 5)); |
567 |
571 |
} |
} |
568 |
572 |
|
|
|
573 |
|
TEST(prefix_len_is_reset_by_column_line_print) |
|
574 |
|
{ |
|
575 |
|
curr_view = &lwin; |
|
576 |
|
fview_setup(); |
|
577 |
|
cmds_init(); |
|
578 |
|
opt_handlers_setup(); |
|
579 |
|
|
|
580 |
|
assert_success(load_tree(&lwin, TEST_DATA_PATH "/tree", NULL)); |
|
581 |
|
assert_true(lwin.list_rows > 6); |
|
582 |
|
lwin.list_pos = 6; |
|
583 |
|
lwin.columns = columns_create(); |
|
584 |
|
|
|
585 |
|
assert_success(cmds_dispatch("set viewcolumns={name},{ext}", &lwin, |
|
586 |
|
CIT_COMMAND)); |
|
587 |
|
curr_stats.load_stage = 2; |
|
588 |
|
/* If this doesn't cause a crash or a memory issue, then there should be no |
|
589 |
|
* bug related to tree prefix length computed for the {name} column being used |
|
590 |
|
* for drawing {ext}. */ |
|
591 |
|
fview_cursor_redraw(&lwin); |
|
592 |
|
curr_stats.load_stage = 0; |
|
593 |
|
|
|
594 |
|
curr_view = NULL; |
|
595 |
|
vle_cmds_reset(); |
|
596 |
|
opt_handlers_teardown(); |
|
597 |
|
columns_teardown(); |
|
598 |
|
} |
|
599 |
|
|
569 |
600 |
static void |
static void |
570 |
601 |
check_tab_title(const tab_info_t *tab_info, const char text[]) |
check_tab_title(const tab_info_t *tab_info, const char text[]) |
571 |
602 |
{ |
{ |