Hey,
I am using Audacity 2.1.2 on Fedora an editing a .wav sound and I am pretty sure after removing parts of the beginning and the end that the playback does NOT play the whole sound to the end.
When I play the same exported sound with the vlc player it plays the whole sound.
Try reducing the “Audio to buffer” setting in “Edit > Preferences > Recording / Latency”.
Note that if set too low, both recording and playback may stutter, and if also using Pulseaudio Audacity may freeze. Low buffer settings tend to work best when using the “hw” device options in the device toolbar.