MLE: tab expansion: fix poss off-by-1; improve user experience..
commit7a662ef1d3854b811dab13c7b7a862fcd725e2c4
authorSteffen (Daode) Nurpmeso <steffen@sdaoden.eu>
Sat, 12 Nov 2016 14:27:06 +0000 (12 15:27 +0100)
committerSteffen (Daode) Nurpmeso <steffen@sdaoden.eu>
Sat, 31 Dec 2016 16:58:00 +0000 (31 17:58 +0100)
tree8a3bc2e62e6c22304f4ff746d023bd35b31a9366
parent3e923f6b0245d565133454002d56f45e3082923e
MLE: tab expansion: fix poss off-by-1; improve user experience..

To be able to get "the real feeling" our shell parser would need to
be able to split the command line into something like a DOM structure,
so that we would now _exactly_ what "states" of quotation etc. exists
at the point the cursor relies.  That we do not have.
But nonetheless, if i type "environ set TMPDIR=/<TAB>" then i want this
to expand to /tmp, i do not want to go back, split the shell token via
a separator, go back, expand, go back, unite
tty.c