I can confirm this bug using 3.2.13(1)-release (i486-pc-linux-gnu)! Following the above steps reproduces the buggy behavior. Here is another way to reproduce the bug:
1. Set PS1="\033[01;37m[ \[\033[01;34m\]\w\[\033[00m\] \033[01;37m]\n\$\033[00m "
2. Type "foo bar baz"
3. Press ctrl+a
3. Cursor should jump back to the beginning of the line, but instead jumps back to "foo b." This is how it looks like with "_" being the cursor:
I can confirm this bug using 3.2.13(1)-release (i486-pc- linux-gnu) ! Following the above steps reproduces the buggy behavior. Here is another way to reproduce the bug:
1. Set PS1="\033[01;37m[ \[\033[ 01;34m\ ]\w\[\033[ 00m\] \033[01; 37m]\n\ $\033[00m "
2. Type "foo bar baz"
3. Press ctrl+a
3. Cursor should jump back to the beginning of the line, but instead jumps back to "foo b." This is how it looks like with "_" being the cursor:
foo b_ar baz