update complexity after saving the buffer

When changes are made in normal mode, the complexity was not updated.
So I found usefull to update complexity after saving the buffer.