emacs code cleanup
This commit is contained in:
parent
53a2f12128
commit
c76aed967f
1 changed files with 1 additions and 5 deletions
|
|
@ -363,10 +363,8 @@ exports.handler.addCommands({
|
|||
// Any insertion or mouse click resets mark-mode.
|
||||
// setMark twice in a row at the same place resets markmode
|
||||
var markMode = exports.markMode();
|
||||
|
||||
if (markMode) {
|
||||
|
||||
cp = editor.getCursorPosition();
|
||||
var cp = editor.getCursorPosition();
|
||||
if (editor.selection.isEmpty() &&
|
||||
markMode.row == cp.row && markMode.column == cp.column) {
|
||||
exports.setMarkMode(null);
|
||||
|
|
@ -374,7 +372,6 @@ exports.handler.addCommands({
|
|||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// turn on mark mode
|
||||
markMode = editor.getCursorPosition();
|
||||
exports.setMarkMode(markMode);
|
||||
|
|
@ -384,7 +381,6 @@ exports.handler.addCommands({
|
|||
exchangePointAndMark: {
|
||||
exec: function(editor) {
|
||||
var range = editor.selection.getRange();
|
||||
|
||||
editor.selection.setSelectionRange(range, !editor.selection.isBackwards());
|
||||
},
|
||||
readonly: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue