vim: Fix subword motion near end of line (#45908)

Fixes subword motion incorrectly jumping to next line when near end of
line. Updates boundary detection to use exclusive boundaries with
need_next_char parameter, matching regular word motion behavior.
Refactors word and subword motion to share boundary detection logic.

Closes #17780

Release Notes:

- Fixed subword motion incorrectly jumping to the next line when near
the end of a line

---------

Co-authored-by: dino <dinojoaocosta@gmail.com>
b5242ab5f2Lionel Henry committed on 1/14/2026, 10:55:15 AM· committed by GitHubparent1d366b3
2 files changedLine totals unavailable