Layout not registering number inputs correctly after undoing

Layout not registering number inputs correctly after undoing a connected line (poly line).

Reproduction:

  1. Draw a line
  2. Type 10, Enter
  3. Draw a second line without inputting numbers (either by inference or whatever)
  4. Undo the line (Ctrl+Z) (Still continuing drawing line and not cancelling draw tool)
  5. Draw second line in whatever direction you wish (can be same direction as before)
  6. Type 10, Enter
  7. You will get a line with a random length and orientation instead <— BUG

This has been bothering me since Sketchup 2014 and prior, it would be nice if it was finally fixed.