Andy Williams
65a32dddd1
[selection] Fix so selecting backwards works
...
highlight, text get and deletion working
2015-09-16 12:32:25 +01:00
Andy Williams
74b3905885
elm_code: consistently use 0 based text index
...
This means it's more familiar as regular string work when
using the elm_code_line APIs. It's also more distinct from
the elm_code_widget layout which is still 1 based columns.
To support unicode we must convert correctly.
Now FIXED!
2015-06-03 21:29:31 +01:00
Andy Williams
ac21aac0e1
elm_code: add legacy API.
...
Refactor eo API in line with elm_obj_* elsewhere
2015-06-02 08:22:36 +01:00
Andy Williams
906cfc9a2c
fix crash when deleting over a line ending
2015-05-30 20:46:34 +01:00
Andy Williams
fcce45fc82
Fix deletion inserting random data.
...
Off by one error (doubled). Classic.
Lesson: Run the tests you write!
2015-05-29 13:10:25 +01:00
Andy Williams
de37470730
selection: fix crash when deleting large selection
...
snprintf is not the tool for simple string copy
- especially if not null terminated
2015-05-24 12:58:39 +01:00
Andy Williams
1c5717ffb1
editor: fix nulls being appended to lines
...
Should resolve issues with nulls being inserted
and also crashes on pasting into a selection
2015-05-18 15:49:24 +01:00
Andy Williams
a5e1f82382
editor: correctly paste multiline windows text
2015-05-05 21:41:29 +01:00
Andy Williams
ee9cec7ddd
editor: Fix crash when pasting multi line
...
Not tracking length correctly so depending on what else is
in memory we could overrun the buffer
2015-05-05 21:40:22 +01:00
Andy Williams
4e7cae76dc
elm_code: add multiline paste support.
...
Creating and breaking out a few helper text methods at the same time.
Test all that we can for this reasonably complex operation
2015-04-19 15:00:10 +01:00
Andy Williams
4cf18aed40
elm_code: refactor widget to seperate space.
...
Keeping the private files for elm_code cleaner
2015-04-04 18:17:01 +01:00