Commit 342fa09
fix(files): make default explorer work with 'mini.pick'
Details:
- Picking a directory in 'mini.pick' (like in 'visit_paths` 'mini.extra'
picker) is intended to execute `:edit <dir-path>`. With 'mini.files'
enabled as default explorer, this throws an error when trying to
delete a buffer.
This happened because of the "smart delete buffer" logic in
'mini.files' default explorer implementation. This commit adjusts the
behavior and covers more use cases with tests.
Resolve #2156
Co-authored-by: Evgeni Chasnovski <[email protected]>1 parent c889667 commit 342fa09
File tree
5 files changed
+53
-78
lines changed- lua/mini
- tests
- screenshots
5 files changed
+53
-78
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1382 | 1382 | | |
1383 | 1383 | | |
1384 | 1384 | | |
1385 | | - | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
1386 | 1390 | | |
1387 | 1391 | | |
1388 | 1392 | | |
| |||
Lines changed: 0 additions & 33 deletions
This file was deleted.
tests/screenshots/tests-test_files.lua---Default-explorer---handles-close-without-opening-file-002
Lines changed: 0 additions & 33 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5769 | 5769 | | |
5770 | 5770 | | |
5771 | 5771 | | |
| 5772 | + | |
| 5773 | + | |
| 5774 | + | |
| 5775 | + | |
| 5776 | + | |
| 5777 | + | |
| 5778 | + | |
| 5779 | + | |
| 5780 | + | |
| 5781 | + | |
| 5782 | + | |
| 5783 | + | |
| 5784 | + | |
| 5785 | + | |
| 5786 | + | |
5772 | 5787 | | |
5773 | | - | |
5774 | | - | |
| 5788 | + | |
| 5789 | + | |
5775 | 5790 | | |
5776 | | - | |
5777 | | - | |
5778 | | - | |
5779 | | - | |
5780 | | - | |
| 5791 | + | |
| 5792 | + | |
| 5793 | + | |
| 5794 | + | |
| 5795 | + | |
| 5796 | + | |
| 5797 | + | |
| 5798 | + | |
| 5799 | + | |
| 5800 | + | |
| 5801 | + | |
| 5802 | + | |
5781 | 5803 | | |
5782 | 5804 | | |
5783 | 5805 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2105 | 2105 | | |
2106 | 2106 | | |
2107 | 2107 | | |
2108 | | - | |
| 2108 | + | |
2109 | 2109 | | |
2110 | 2110 | | |
2111 | 2111 | | |
2112 | 2112 | | |
2113 | | - | |
| 2113 | + | |
2114 | 2114 | | |
2115 | 2115 | | |
2116 | 2116 | | |
2117 | 2117 | | |
2118 | 2118 | | |
| 2119 | + | |
| 2120 | + | |
2119 | 2121 | | |
2120 | 2122 | | |
2121 | | - | |
2122 | | - | |
| 2123 | + | |
| 2124 | + | |
| 2125 | + | |
| 2126 | + | |
| 2127 | + | |
| 2128 | + | |
| 2129 | + | |
| 2130 | + | |
| 2131 | + | |
| 2132 | + | |
| 2133 | + | |
| 2134 | + | |
| 2135 | + | |
| 2136 | + | |
| 2137 | + | |
2123 | 2138 | | |
2124 | 2139 | | |
2125 | 2140 | | |
| |||
0 commit comments