fix: Set cursor position explicitly before jumping to the selection in paste from source feature - #2833
fix: Set cursor position explicitly before jumping to the selection in paste from source feature#2833jiishiin wants to merge 1 commit into
Conversation
|
Can you explain what you mean by it not working as expected? |
This is specific to the paste from source feature I implemented. There are action buttons which can be clicked to show the begin and end of current selection using the setSelection() and jumpToSelection() api. With the commit af15427 the setSelection() will set the cursor postion to selection end. So in the feature pressing the goto begin/end was not working as expected. This change explicitly sets the cursor postion before jumping to the selection. |
|
Thanks for the explanation and changing the title to clarify. |
Problem description
Due the cursor position change in hex editor setSelection function in commit af15427, jumping to begin or end using action buttons is not working as expected in the paste from source popup.
Implementation description
Explicitly set the cursor position before jumping to the selection.