mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-08 11:23:48 -05:00
* Add debugging messages to diagnose issue #931. * Echo the CWD and NERDTree root too. * Ensure DirArrows are trimmed to a single character. Actually, it's up to the user to make sure it's a single character after leading and trailing spaces are removed. Spaces need to be removed so that an accurate level of indentation can be calculated. * Remove debugging statements * Simplify the algorithm for calculating indentation level. 1. Replace the DirArrows with a single space. 2. Count the leading spaces. 3. Divide by 2. This allows users to specify multi-character arrows, where a spaces prevent characters printing on top of each other.