mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-23 16:57:02 +01:00
Cursor set to end on replaceSelection calls
It's the default, but good to be specific
This commit is contained in:
@@ -435,7 +435,7 @@ var ICEcoder = {
|
||||
userSelStart = cM.getCursor('start');
|
||||
userSelEnd = cM.getCursor('end');
|
||||
lineExtra = userSelStart.line != userSelEnd.line && userSelEnd.ch == cM.getLine(userSelEnd.line).length ? "\n" : "";
|
||||
cM.replaceSelection(cM.getSelection()+lineExtra+cM.getSelection(), "start");
|
||||
cM.replaceSelection(cM.getSelection()+lineExtra+cM.getSelection(), "end");
|
||||
cM.setSelection(userSelStart, userSelEnd);
|
||||
} else {
|
||||
if (!line) {line = cM.getCursor().line};
|
||||
@@ -451,7 +451,7 @@ var ICEcoder = {
|
||||
|
||||
cM = ICEcoder.getcMInstance();
|
||||
if (!line && cM.somethingSelected()) {
|
||||
cM.replaceSelection("");
|
||||
cM.replaceSelection("","end");
|
||||
} else {
|
||||
if (!line) {line = cM.getCursor().line};
|
||||
ch = cM.getCursor().ch;
|
||||
|
||||
Reference in New Issue
Block a user