Commit graph

385 commits

Author SHA1 Message Date
James Allen
438339167f Fixed gotoLine to consider wrapped lines when calculating where to scroll to
I have created a new method VirtualRenderer#scrollToLine to do for lines what
scrollToRow does for absolute rows in the editor. Previously gotoLine called
scrollToRow which would jump to the nth row, but with line wraps this may not
be the nth line. scrollToLine also takes an additional parameter to tell it
whether to scroll the line to the top or center of the editor.
2011-02-11 16:21:03 +00:00
Joe Cheng
9226825600 Remove redundant setWrapLimit method 2011-02-11 16:50:10 +08:00
Joe Cheng
c2cd67105d Add free text wrapping with constraints 2011-02-11 16:50:10 +08:00
Irakli Gozalishvili
2e8d62a1e3 Reverting change back to fix the regression:
be6646ba35
2011-02-11 15:45:53 +08:00
Irakli Gozalishvili
53bc406e43 Fix for the cursor in VIM mode.
ffada5c7b2
2011-02-11 15:45:52 +08:00
Fabian Jakobs
6be525c3f8 cursor on the right side of the screen should be visible 2011-02-11 08:21:17 +01:00
Fabian Jakobs
d776e30935 tab to spaces 2011-02-11 08:20:33 +01:00
Fabian Jakobs
faca5d8267 move measure DOM node further out of the viewport 2011-02-11 07:59:35 +01:00
Eric Allam
e228eda37a Fixed Issue 102, screenToTextCoordinates returning incorrect row when window is scrolled in the Y direction 2011-02-11 14:46:54 +08:00
Joe Cheng
2f26407592 Fix bug where typing or pasting to extend the longest line causes the cursor and last character to be hidden 2011-02-11 14:40:31 +08:00
Resolver Developers
f811ef0b6f Removed superfluous comma which breaks IE 2011-02-11 03:46:15 +08:00
Fabian Jakobs
b6b25168e2 Merge branch 'master' of github.com:ajaxorg/ace 2011-02-10 17:56:07 +01:00
Fabian Jakobs
7dfa56c6b8 some more anchor tests and fixes 2011-02-10 17:21:05 +01:00
Fabian Jakobs
70f56d355e add anchor class 2011-02-10 16:36:27 +01:00
Fabian Jakobs
fe84831a99 fix ranges for remove and add lines 2011-02-10 16:36:12 +01:00
Joe Cheng
065afc28c2 Improve wrap mode behavior when wrap limit changes
- The cursor wasn't repainting in its new position
- Incorrect content width due to session.getScreenWidth() returning a stale value
2011-02-10 17:10:58 +08:00
Fabian Jakobs
d32c4e4863 console.log is not always available 2011-02-10 09:54:22 +01:00
Fabian Jakobs
1a4cdb7bdc enable navigation test again 2011-02-10 09:52:28 +01:00
Jordan Lewis
70a48ad60e Make navigate{Down,Up} respect its 'times' arg 2011-02-10 15:33:31 +08:00
Jordan Lewis
72e15f693c Fix typo in navigation_test.js
Tried to require ../Editor instead of ../editor
2011-02-10 15:31:04 +08:00
Daniel Krech
e1f5a64327 removed the 'match[i + 1].length' clause in order to support tokenizing on an empty line (all the test cases pass without it) 2011-02-10 15:20:29 +08:00
Daniel Krech
a34b2c6e82 removed throwing of error so that one can tokenize a empty line; added tokenizing of empty line to test mode (to demonstrate); commented out navigation test as it's not working before or after these changes. 2011-02-10 15:20:29 +08:00
Joe Cheng
dae577b086 Fix IE8 issues
- Fix error that happens on load: 'tokens' is null or not an object
- Syntax highlighting didn't actually work due to IE8 match semantics being different (empty string, not undefined, returned unmatched capturing groups)
2011-02-09 20:43:22 +08:00
Fabian Jakobs
a8fc812bad Merge branch 'master' of github.com:ajaxorg/ace 2011-02-09 11:46:43 +01:00
Fabian Jakobs
c885d8641b fix https://github.com/ajaxorg/ace/issues#issue/80 2011-02-09 11:46:27 +01:00
Colin Gourlay
96285d43ff Added myself to the authors of the Python syntax mode. 2011-02-08 20:51:13 +08:00
Fabian Jakobs
210dcaf4fd fix keyword lookup in the tokenizers 2011-02-08 12:33:12 +01:00
Fabian Jakobs
554dafd1bf fix tokenizer check 2011-02-08 12:32:47 +01:00
Fabian Jakobs
4b3d183ba7 reaadd tokenizer check 2011-02-08 09:19:06 +01:00
Fabian Jakobs
faec023507 Merge branch 'master' of github.com:ajaxorg/ace 2011-02-08 09:16:26 +01:00
Daniel Krech
ae4b171065 Fixed to allow tokenizing of an empty line. eg. a rule with a regex of ^$ 2011-02-08 16:16:05 +08:00
Joe Cheng
a9bbd7995a PageUp/Down behavior that is more consistent with native OS 2011-02-08 16:12:55 +08:00
Fabian Jakobs
44c1196e08 Merge branch 'master' of github.com:ajaxorg/ace 2011-02-08 09:04:19 +01:00
satyr
589418a83e CoffeeScript mode 2011-02-08 16:03:45 +08:00
Julian Viereck
3b29651731 Ensure there is always at least one line if a empty document is created 2011-02-08 01:06:18 +08:00
Julian Viereck
17578e42cb Fix issue 83: Wrap mode error on Document.insertLines/removeLines 2011-02-08 01:06:18 +08:00
Fabian Jakobs
d6d9a7329d guess worker base path 2011-02-07 10:54:18 +01:00
Fabian Jakobs
81bafa346a fix worker loading for requirejs 2011-02-07 10:37:04 +01:00
Fabian Jakobs
60058ec2be Merge branch 'master' of github.com:ajaxorg/ace 2011-02-04 15:24:25 +01:00
Fabian Jakobs
0be45ac78c shift-backspace should delete char 2011-02-04 15:24:10 +01:00
Fabian Jakobs
6516e3931a fix broken reference to "self" 2011-02-04 13:24:04 +01:00
Fabian Jakobs
0259c731f8 setTimeout passes the elapsed time as argument 2011-02-04 07:47:04 +01:00
Gastón Kleiman
ba42042013 add C/C++ syntax highlighting 2011-02-04 14:28:25 +08:00
MikeRatcliffe
3da587e6e3 Patched wordwrap JS error on startup 2011-02-04 14:27:55 +08:00
Fabian Jakobs
ae510f29b4 make sure line numbers stay correct 2011-02-03 14:55:21 +01:00
Fabian Jakobs
c9f3abb199 ignore #! in the js worker 2011-02-03 14:45:45 +01:00
Fabian Jakobs
89963dedac Merge branch 'master' of github.com:ajaxorg/ace
Conflicts:
	demo/demo.js
	editor.html
2011-02-03 10:13:18 +01:00
Fabian Jakobs
bd5b68d767 Merge remote branch 'tomtasche/master' 2011-02-03 09:45:19 +01:00
Fabian Jakobs
083e29bbf8 Merge branch 'master' of github.com:ajaxorg/ace 2011-02-03 09:37:53 +01:00
Fabian Jakobs
c181ecfe23 merge ruby mode 2011-02-02 18:27:13 +01:00