Commit Graph

9992 Commits

Author SHA1 Message Date
Léa Saviot
9c5843500a [escher/text_input] Fix reload and scroll after deleteSelectedText 2020-02-12 15:13:17 +01:00
Léa Saviot
20c761d3f0 [escher/text_area] Fix slection over wrote
Scenario: 34567          then press 0 -> we want 3067
           ** selected
2020-02-12 15:13:17 +01:00
Léa Saviot
73b1f7da20 [escher/text_input] Fix selection algorithm
There was a glitch when :
** are the selected glyphs and | is the cursor

12345678
234567|8    then Shift+up
    **
2020-02-12 15:13:17 +01:00
Léa Saviot
e98b67634d [escher/text_area] Improve dirty tracking 2020-02-12 15:13:17 +01:00
Léa Saviot
1f44f80e4a [escher] Scroll to cursor when selecting up / down 2020-02-12 15:13:17 +01:00
Léa Saviot
961ba10122 [ion/events] shift+Left/Right/Up/Down can be repeated 2020-02-12 15:13:17 +01:00
Léa Saviot
b6f3b39086 [escher/text_input] Rename currentSelectionIsEmpty -> selectionIsEmpty 2020-02-12 15:13:17 +01:00
Léa Saviot
67008f454e [escher/text_area] Replace the selection when event with text 2020-02-12 15:13:17 +01:00
Léa Saviot
d05a95c87c [apps/code] Reset selection when leaving script editor 2020-02-12 15:13:17 +01:00
Léa Saviot
1be417e2c4 [apps/code] Code cleaning 2020-02-12 15:13:17 +01:00
Léa Saviot
95d0715606 [escher/solid_text_area] Remove unused class 2020-02-12 15:13:17 +01:00
Léa Saviot
a2c7e57a77 [apps/python_text_area] Color the white spaces 2020-02-12 15:13:17 +01:00
Léa Saviot
9d9efc985f [apps/python_text_area] Clean drawLine 2020-02-12 15:13:17 +01:00
Léa Saviot
30923ed4c6 [escher/text_area] Select up/down 2020-02-12 15:13:17 +01:00
Léa Saviot
349b4f8532 [escher/text_area] Fix selection color 2020-02-12 15:13:17 +01:00
Léa Saviot
1eba12784f [escher/text_area] Remove unnecessary scroll 2020-02-12 15:13:17 +01:00
Léa Saviot
ab48f8d879 [ion/events] if shift/alpha pressed, it is active
No need to press shift between ezach event -> one long shift press keeps
it active
2020-02-12 15:13:17 +01:00
Léa Saviot
bb69b2c131 [ion/events_modifier] Reindent 2020-02-12 15:13:17 +01:00
Léa Saviot
14cc6ffc59 [escher/text_area] Select and copy 2020-02-12 15:13:17 +01:00
Léa Saviot
0a21ed2cfb [liba] strlcpy third argument in size, not length 2020-02-12 15:13:17 +01:00
Émilie Feral
4025d75734 [apps/code] Fix number of displayable rows in ConsoleController 2020-02-12 15:13:17 +01:00
Émilie Feral
d64321d116 [apps/code] Remove useless class member in ConsoleController 2020-02-12 15:13:17 +01:00
Léa Saviot
e0bbc73b8b [apps/regression] Fix code cleaning 2020-02-12 15:13:17 +01:00
Ruben Dashyan
51cc6a4d71 [poincare/layout_helper] Simplify Infix and Prefix 2020-02-12 15:13:17 +01:00
Ruben Dashyan
ad938aed48 [poincare/tree_pool] Factor expression in registerNode 2020-02-12 15:13:17 +01:00
Ruben Dashyan
78f1270752 [poincare/tree_pool] Correct identifier type in registerNode 2020-02-12 15:13:17 +01:00
Ruben Dashyan
ff4879abb1 [poincare/tree_pool] Factor updateNodeForIdentifierFromNode
Hence fixing typo in assertion
2020-02-12 15:13:17 +01:00
Ruben Dashyan
4313560872 [poincare/tree_pool] Remove redundancy
The first condition generally implies the second (if size > 0).
If size == 0 then there is nothing to alloc.
2020-02-12 15:13:16 +01:00
Ruben Dashyan
e984277d66 [poincare/multiplication] shallowBeautify and denominator call new splitIntoNormalForm 2020-02-12 15:13:16 +01:00
Léa Saviot
0209c6d2d4 [ion/storage] Increase size to 32K 2020-02-12 15:13:16 +01:00
Léa Saviot
4ffcace024 [ion/storage] Add TODO about code optimization 2020-02-12 15:13:16 +01:00
Léa Saviot
c1b792c23d [apps/code] Get out of script edition on usb enumeration
The storage needs to be in a clean state
2020-02-12 15:13:16 +01:00
Léa Saviot
7e801906b8 [test/ion] Add Storage available space moving test 2020-02-12 15:13:16 +01:00
Léa Saviot
5853e96947 [apps/code] Remove EditorController::m_areaBuffer
This was a very large buffer that took a lot of RAM space (the size of
the storage). Instead of having it, we just move the available space of
the storage at the end of the edited script, and move it back when the
edition finishes.
This is slower but saves a lot of space.
2020-02-12 15:13:16 +01:00
Léa Saviot
a2a0abdcef [poincare/TreeNode] Fix hasNode 2020-02-12 15:13:16 +01:00
Léa Saviot
ed211f185a [poincare/tree_pool] Use uint16_t for node identifiers, not int 2020-02-12 15:13:16 +01:00
Léa Saviot
0a1c6a3d1d [poincare/tree_pool] Store node offsets, not node pointers
This saves place because we store uint16_t, not uint32_t
2020-02-12 15:13:16 +01:00
Léa Saviot
6a62f23000 [poincare/tree_pool] Replace test with assertion 2020-02-12 15:13:16 +01:00
Léa Saviot
23dafffcdc [poincare/tree_pool] TODO comment about not needed cleaning 2020-02-12 15:13:16 +01:00
Léa Saviot
ea3f23cb09 [poincare/tree_pool] Fix and add assertions on TreePool::node(id) 2020-02-12 15:13:16 +01:00
Émilie Feral
37061b9cb5 [python] Fix gc_collect to be sure to get unaligned pointers 2020-02-12 15:13:16 +01:00
Émilie Feral
4b58efbc0a [python] Fix stack boundary on the device 2020-02-12 15:13:16 +01:00
Émilie Feral
d1e93a2918 [python] Python stack: fix limit 2020-02-12 15:13:16 +01:00
Léa Saviot
d0a65b01c0 py/qstr: Raise exception in qstr_from_strn if str to intern is too long. 2020-02-12 15:13:16 +01:00
Léa Saviot
c9d337d536 py/builtinimport: Raise exception on empty name. 2020-02-12 15:13:16 +01:00
Ruben Dashyan
95c7235831 [poincare] Align implementation of shallowReduce in Symbol and Function 2020-02-12 15:13:16 +01:00
Ruben Dashyan
70c9d063a2 [poincare/symbol] Use replaceWithInPlace in shallowReduce 2020-02-12 15:13:16 +01:00
Ruben Dashyan
686b74cfe4 [poincare/constant] Remove unused parameters from templatedApproximate 2020-02-12 15:13:16 +01:00
Ruben Dashyan
961a0f5f2b [poincare/constant] Simplify shallowReduce 2020-02-12 15:13:16 +01:00
Ruben Dashyan
c238c5f736 [poincare/symbol_abstract] Remove unnecessary friend class Store 2020-02-12 15:13:16 +01:00