mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
💄
This commit is contained in:
2
docs/webkit.md
Normal file
2
docs/webkit.md
Normal file
@@ -0,0 +1,2 @@
|
||||
* Install webkit
|
||||
`git clone --depth 1 https://github.com/WebKit/webkit.git`
|
||||
@@ -41,8 +41,8 @@ class Editor extends Template
|
||||
@on 'move-left', => @moveLeft()
|
||||
@on 'move-down', => @moveDown()
|
||||
@on 'move-up', => @moveUp()
|
||||
@on 'newline', => @bench = @buffer.change({ start: @getPosition(), end: @getPosition() }, "\n")
|
||||
@on 'backspace', => @benrch = @buffer.backspace @getPosition()
|
||||
@on 'newline', => @buffer.change({ start: @getPosition(), end: @getPosition() }, "\n")
|
||||
@on 'backspace', => @buffer.backspace @getPosition()
|
||||
|
||||
handleEvents: ->
|
||||
@on 'focus', =>
|
||||
@@ -88,11 +88,11 @@ class Editor extends Template
|
||||
|
||||
updateLineElement: (row) ->
|
||||
line = @buffer.getLine(row)
|
||||
elt = @getLineElement(row)
|
||||
element = @getLineElement(row)
|
||||
if line == ''
|
||||
elt.html(' ')
|
||||
element.html(' ')
|
||||
else
|
||||
elt.text(line)
|
||||
element.text(line)
|
||||
|
||||
insertLineElement: (row) ->
|
||||
@getLineElement(row).before(@buildLineElement(@buffer.getLine(row)))
|
||||
|
||||
Reference in New Issue
Block a user