Commit Graph

2294 Commits

Author SHA1 Message Date
Boris Faure bbe4960c2c tests: add some on mouse reporting in X10 mode, normal reporting 2019-03-03 13:20:25 +01:00
Boris Faure 5a98842d63 termiointernals: do not emit mouse wheel on mode X10 2019-03-03 13:20:03 +01:00
Boris Faure 72afb80d6e win: use min_* as base step since the old formula may < 0
Closes T7699
2019-03-02 18:26:04 +01:00
Boris Faure 5c4cf2ea38 tests: add one on window resize where the content is not wrapped 2019-03-01 13:29:00 +01:00
Boris Faure f0605c697d private.h: helper for testing escape codes on terminology's binary 2019-03-01 13:28:01 +01:00
Boris Faure 0f45747925 termpty: fix _termpty_cell_is_empty()
was not working on cell = {}
2019-03-01 13:23:02 +01:00
Boris Faure 1c9c2a19ed termptyesc: handle window manipulations that resizes the terminal
only for testing purpose
2019-02-27 23:46:04 +01:00
Boris Faure 4d89080d71 termiointernal: handle empty celles in selections.
Condition was wrong
2019-02-27 20:23:41 +01:00
Boris Faure b477d6cc20 tests: add one on selection invalidation when line got removed 2019-02-27 20:06:34 +01:00
Boris Faure 3f76507fe5 tests: update tests due to fix in previous commit 2019-02-25 23:03:51 +01:00
Boris Faure 5300a89013 termiointernals: fix segfault 2019-02-25 22:51:03 +01:00
Boris Faure 19cc710ad0 tests: add some on box selection to paragraph 2019-02-25 22:32:29 +01:00
Boris Faure 6c0ef9ed94 tests: add some tests on box selection to word 2019-02-25 22:05:55 +01:00
Boris Faure 7ef4b413b5 tests: add some on box selection to position 2019-02-25 22:05:02 +01:00
Boris Faure 1e5825832f termiointernals: rewrite _sel_word_to() + update tests 2019-02-25 22:02:11 +01:00
Boris Faure 48496b2eb5 termpty: cell is empty if bg is invisible. Closes T7707 2019-02-24 17:06:31 +01:00
Boris Faure 923fa4a553 tests: add some on selection *to* paragraphs 2019-02-24 16:20:03 +01:00
Boris Faure 9333ce2c4b tests: add selection *to* word 2019-02-24 11:02:31 +01:00
Boris Faure 811929d672 tests/selection_to_position.sh: add "TO" within selection 2019-02-23 20:11:24 +01:00
Boris Faure e0dde04dfc tests: add tests on selection "TO" position (with shift) 2019-02-23 20:00:57 +01:00
Boris Faure 3193ad2e5a tests: make it work on stricter shells 2019-02-23 18:31:30 +01:00
Boris Faure 52a0ba46e0 termiointernals: selection is based on relative y, not on-screen y 2019-02-23 17:56:25 +01:00
Boris Faure eaaf63172d tyfuzz: test terminal is only 24 lines 2019-02-23 17:52:42 +01:00
Boris Faure b700a8a322 tests: have tests on selection in history 2019-02-23 17:52:04 +01:00
Boris Faure 2f0bff67d5 tests: not left-trimming 2019-02-23 17:42:39 +01:00
Boris Faure ee06d7f135 tests: use correct escape code 2019-02-23 17:41:54 +01:00
Boris Faure bebb0872c3 termiointernals: remove empty selections 2019-02-23 13:34:31 +01:00
Boris Faure 553e12e6a0 tests: ensure selection is removed in dragging test 2019-02-23 11:26:33 +01:00
Boris Faure 64d68eadf1 tests: add some tests on selection from/to invisible area 2019-02-23 11:22:35 +01:00
Boris Faure 2ca440ba93 tytest: use same offset as "real life"
makes it easy to write tests
2019-02-23 11:19:20 +01:00
Boris Faure 5fedd2c0a4 termiointernals: unset selection when codepoint is different
but do not make a difference between space and no codepoint
2019-02-23 11:12:14 +01:00
Boris Faure 510032df70 termiointernals: fix leak in termio_internal_get_selection() 2019-02-22 20:15:16 +01:00
Boris Faure b2e19bfdef tests: do not keep corners on if click shall invalidate selection 2019-02-21 18:53:18 +01:00
Boris Faure 16637c3515 termptyext: fix eina_stringshare_del() on bad pointer 2019-02-21 18:43:11 +01:00
Boris Faure e024618dba termpty: compute exact line length in termpty_cellrow_get() 2019-02-21 18:42:28 +01:00
Boris Faure 6c29e8f208 tests: add some where selections spans multiple lines 2019-02-21 18:40:05 +01:00
Boris Faure 50684da0cb tests: use shorter sleeps to speed up test execution 2019-02-20 23:12:13 +01:00
Boris Faure 1218262ad0 tests: add some selecting words/paragraphs in backlog 2019-02-19 23:13:03 +01:00
Boris Faure 4bc04c5421 termiointernals: be able to mock mouse wheel 2019-02-19 20:03:14 +01:00
Boris Faure 1a0b6f1b86 tests: add case where selection while text is scrolled in margins 2019-02-19 19:17:50 +01:00
Boris Faure 9247665ada tests: add a test about selection keeping up while text is scrolling 2019-02-18 22:28:33 +01:00
Boris Faure 3b0a932d28 tests: add some on triple-click selections 2019-02-18 22:09:37 +01:00
Boris Faure f93f1ef3ba termiointernals: right-trim line selections 2019-02-18 22:04:37 +01:00
Boris Faure 75e4825045 tests: add some on double click selection 2019-02-18 20:59:01 +01:00
Boris Faure b7305bfc59 tyfuzz: better mock termio_take_selection()
+ fix leak
+ make the code more readable to me
2019-02-18 20:57:38 +01:00
Boris Faure e3a2d70e6d tests: add some on dragging boxed selection 2019-02-17 18:42:29 +01:00
Boris Faure d5051ada14 tests: add some on dragging selections 2019-02-17 18:23:21 +01:00
Boris Faure 376c0a962b termptyext: add testing escape code to set/unset selection corners 2019-02-17 12:32:16 +01:00
Boris Faure e7a5b3059c tests: add some on box selections in all directions 2019-02-16 20:08:31 +01:00
Boris Faure 86a199ba8f tests: add some selections in all directions 2019-02-16 18:12:41 +01:00