Commit Graph

14 Commits

Author SHA1 Message Date
Andy Williams 9c9b92cada [editor] Fix crash when deleting selections
If the selection ended in the carriage return the
editor could craash.

@fix
2016-02-21 18:03:29 +00:00
Andy Williams 49fa89dc03 [editor] stop auto selection on symbols too 2016-02-15 23:51:51 +00:00
Andy Williams 55ecf31ccd [editor] double click and triple do selections
double for a word (space or tab delimited for now)
triple selects whole line.
2016-02-15 22:54:12 +00:00
Andy Williams 0b3c19bb21 [selection] Fix so selecting backwards works
highlight, text get and deletion working
2015-09-16 12:32:25 +01:00
Andy Williams 3f86407481 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 e3ed8806c3 elm_code: add legacy API.
Refactor eo API in line with elm_obj_* elsewhere
2015-06-02 08:22:36 +01:00
Andy Williams 86d5afb25d fix crash when deleting over a line ending 2015-05-30 20:46:34 +01:00
Andy Williams b68312de33 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 ba2b0dd93f 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 5cbab1fa72 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 74b7c2a3d3 editor: correctly paste multiline windows text 2015-05-05 21:41:29 +01:00
Andy Williams 63e5ce4e8f 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 6bd0d56e13 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 820bb1622e elm_code: refactor widget to seperate space.
Keeping the private files for elm_code cleaner
2015-04-04 18:17:01 +01:00