Le 26/04/2018 à 03:49, Richard Kimberly Heck a écrit :
commit aa2f409d871d36dc0e1c038aba900d06963d3459
Author: Richard Kimberly Heck <[email protected]>
Date: Wed Apr 25 21:48:25 2018 -0400
Restore implicit word selection for inset insertion.
Am I right that you test for the same condition in the if() and the else
if()?
JMarc
+ if (cmd.action() == LFUN_INDEX_INSERT)
+ copySelectionToTemp(cur);
+ else
+ cutSelectionToTemp(cur, false, pastesel);
+ cur.clearSelection();
+ gotsel = true;
+ } else if (cmd.action() == LFUN_INDEX_INSERT) {
+ gotsel = text->selectWordWhenUnderCursor(cur,
WHOLE_WORD);
+ copySelectionToTemp(cur);
+ cur.clearSelection();
}