mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	Refactored (moved) the code for preserving the cursor's initial logical position from `quote_and_reply()` in `compose_actions.js` which calls `replace_syntax()` directly into `replace_syntax()` in `compose_ui.js`. This ensures that anytime text in a textarea is replaced, the original cursor position is always restored. Earlier, this was needed to be done separately, and missing that would lead to bugs with the cursor unexpectedly jumping on replacement. Fixes: #23863.