On Sun Jul 20 18:46:01 2025 +0000, Joe Souza wrote:
WCMD_parameter does not handle tab completion. This code here does. The example path in the comment in this MR above does not work with tab completion in current code. These changes fix that. Try the example path with current code and then with my changes here to see for yourself.
To be completely clear about this, create a directory named "[2025] Tax Documents" (without the quotes). Then, type ```"[2025] Ta<tab>```. Without my changes here, note that this is incorrectly completed to "[2025][2025] Tax Documents" (note the doubled "[2025][2025]"). This is mentioned in the original comment for the merge request above, but perhaps it wasn't clear. Next, create a file named something like "fil]e1.txt" (or a file containing pretty much any of the other delimiter characters), and test tab completion with those. The results will be incorrect with current code. My changes here fix that.