emacs: deactivate mark on kill-ring-save
This commit is contained in:
parent
ee76ccad19
commit
0a774fbb37
1 changed files with 6 additions and 0 deletions
|
|
@ -474,6 +474,12 @@ exports.handler.addCommands({
|
|||
killRingSave: {
|
||||
exec: function(editor) {
|
||||
exports.killRing.add(editor.getCopyText());
|
||||
(function() {
|
||||
var sel = editor.selection,
|
||||
range = sel.getRange();
|
||||
editor.pushEmacsMark(sel.isBackwards() ? range.end : range.start);
|
||||
sel.clearSelection();
|
||||
}).delay(0);
|
||||
},
|
||||
readonly: true
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue