When recording a midi part it extends to the length of the selection, how

When recording a midi part it extends to the length of the selection. What is the preference setting to have it not do this.

Hi,

I think this is the one you are searching for: Preferences > Record > MIDI > Snap MIDI Parts to Bars.