Skip to content

Commit

Permalink
package 18.07.24
Browse files Browse the repository at this point in the history
  • Loading branch information
akoreman committed Jul 18, 2024
1 parent 32003b7 commit de6d45a
Show file tree
Hide file tree
Showing 11 changed files with 54 additions and 17 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [1.35.3](https://github.com/ajaxorg/ace/compare/v1.35.2...v1.35.3) (2024-07-18)


### Bug Fixes

* ghost text rendering of empty lines ([#5615](https://github.com/ajaxorg/ace/issues/5615)) ([1ae0bdc](https://github.com/ajaxorg/ace/commit/1ae0bdcfb9da4078713d116e93a9c9a935a1258d))

### [1.35.2](https://github.com/ajaxorg/ace/compare/v1.35.1...v1.35.2) (2024-07-01)

### [1.35.1](https://github.com/ajaxorg/ace/compare/v1.35.0...v1.35.1) (2024-06-27)
Expand Down
2 changes: 2 additions & 0 deletions css/ace.css
Original file line number Diff line number Diff line change
Expand Up @@ -589,12 +589,14 @@ opacity:1;
background-color: #ddd;
}
.ace_placeholder {
position: relative;
font-family: arial;
transform: scale(0.9);
transform-origin: left;
white-space: pre;
opacity: 0.7;
margin: 0 10px;
z-index: 1;
}
.ace_ghost_text {
opacity: 0.5;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "ace-builds",
"main": "./src-noconflict/ace.js",
"typings": "ace.d.ts",
"version": "1.35.2",
"version": "1.35.3",
"description": "Ace (Ajax.org Cloud9 Editor)",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down
2 changes: 1 addition & 1 deletion src-min-noconflict/ace.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/keybinding-emacs.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/ace.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min/keybinding-emacs.js

Large diffs are not rendered by default.

15 changes: 11 additions & 4 deletions src-noconflict/ace.js

Large diffs are not rendered by default.

11 changes: 9 additions & 2 deletions src-noconflict/keybinding-emacs.js
Original file line number Diff line number Diff line change
Expand Up @@ -589,11 +589,11 @@ exports.handler.attach = function (editor) {
editor.pushEmacsMark = function (p, activate) {
var prevMark = this.session.$emacsMark;
if (prevMark)
this.session.$emacsMarkRing.push(prevMark);
pushUnique(this.session.$emacsMarkRing, prevMark);
if (!p || activate)
this.setEmacsMark(p);
else
this.session.$emacsMarkRing.push(p);
pushUnique(this.session.$emacsMarkRing, p);
};
editor.popEmacsMark = function () {
var mark = this.emacsMark();
Expand Down Expand Up @@ -625,6 +625,13 @@ exports.handler.attach = function (editor) {
editor.on('copy', this.onCopy);
editor.on('paste', this.onPaste);
};
function pushUnique(ring, mark) {
var last = ring[ring.length - 1];
if (last && last.row === mark.row && last.column === mark.column) {
return;
}
ring.push(mark);
}
exports.handler.detach = function (editor) {
editor.renderer.$blockCursor = false;
editor.session.$selectLongWords = $formerLongWords;
Expand Down
15 changes: 11 additions & 4 deletions src/ace.js

Large diffs are not rendered by default.

11 changes: 9 additions & 2 deletions src/keybinding-emacs.js
Original file line number Diff line number Diff line change
Expand Up @@ -589,11 +589,11 @@ exports.handler.attach = function (editor) {
editor.pushEmacsMark = function (p, activate) {
var prevMark = this.session.$emacsMark;
if (prevMark)
this.session.$emacsMarkRing.push(prevMark);
pushUnique(this.session.$emacsMarkRing, prevMark);
if (!p || activate)
this.setEmacsMark(p);
else
this.session.$emacsMarkRing.push(p);
pushUnique(this.session.$emacsMarkRing, p);
};
editor.popEmacsMark = function () {
var mark = this.emacsMark();
Expand Down Expand Up @@ -625,6 +625,13 @@ exports.handler.attach = function (editor) {
editor.on('copy', this.onCopy);
editor.on('paste', this.onPaste);
};
function pushUnique(ring, mark) {
var last = ring[ring.length - 1];
if (last && last.row === mark.row && last.column === mark.column) {
return;
}
ring.push(mark);
}
exports.handler.detach = function (editor) {
editor.renderer.$blockCursor = false;
editor.session.$selectLongWords = $formerLongWords;
Expand Down

0 comments on commit de6d45a

Please sign in to comment.