Skip to content

Commit dcb1bfd

Browse files
committed
Updates on contents-modified instead of tokenized buffer change
As for version 0.90 when moving lines using keyboard, some of them was disappearing (mostly the outer selection lines). It’ll allow reduce the load on atom as we’ll update the minimap less frequently.
1 parent f9ef6c3 commit dcb1bfd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/minimap-editor-view.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ class MinimapEditorView extends ScrollView
3232
buffer = @editorView.getEditor().buffer
3333
tokenizedBuffer = @editorView.getEditor().displayBuffer.tokenizedBuffer
3434
@subscribe buffer, 'changed', @registerBufferChanges
35-
@subscribe tokenizedBuffer, 'changed', @update
35+
@subscribe buffer, 'contents-modified', @update
3636

3737
registerBufferChanges: (event) =>
3838
@bufferChanges.push event
3939

40-
update: () =>
40+
update: =>
4141
return unless @editorView?
4242
return if @frameRequested
4343

0 commit comments

Comments
 (0)