mirror of
https://github.com/wickedest/Mergely.git
synced 2026-04-01 10:18:36 +08:00
Added ignorecase to editor
This commit is contained in:
@@ -395,7 +395,6 @@ jQuery.extend(Mgly.CodeMirrorDiffView.prototype, {
|
||||
viewport: false,
|
||||
ignorews: false,
|
||||
ignorecase: false,
|
||||
wrapdiff: false,
|
||||
fadein: 'fast',
|
||||
editor_width: '650px',
|
||||
editor_height: '400px',
|
||||
@@ -499,14 +498,14 @@ jQuery.extend(Mgly.CodeMirrorDiffView.prototype, {
|
||||
scrollToDiff: function(direction) {
|
||||
if (!this.changes.length) return;
|
||||
if (direction == 'next') {
|
||||
if (this.settings.wrapdiff && this._current_diff == this.changes.length -1) {
|
||||
if (this._current_diff == this.changes.length -1) {
|
||||
this._current_diff = 0;
|
||||
} else {
|
||||
this._current_diff = Math.min(++this._current_diff, this.changes.length - 1);
|
||||
}
|
||||
}
|
||||
else if (direction == 'prev') {
|
||||
if (this.settings.wrapdiff && this._current_diff == 0) {
|
||||
if (this._current_diff == 0) {
|
||||
this._current_diff = this.changes.length - 1;
|
||||
} else {
|
||||
this._current_diff = Math.max(--this._current_diff, 0);
|
||||
|
||||
Reference in New Issue
Block a user