26 Commits

Author SHA1 Message Date
Roi Martin
75a7ad2750 Do not move the cursor beyond EOF 2017-08-19 00:06:54 +02:00
Roi Martin
ad91aa2b83 Refactoring of *View.writeRune 2017-08-18 09:21:00 +02:00
Roi Martin
2677ad0445 Fix trailing \x00 bug in edition mode 2017-08-18 01:00:47 +02:00
Roi Martin
0f8c8e3c9e Remove unneeded parentheses 2017-08-15 21:13:34 +02:00
Roman Lisagor
d1b6db5a49 Bug fix: v.MoveCursor with dx < -1 or dx > 1 does not work if origin needs to be adjusted
The existing logic moves the origin by 1 in either direction. The new logic
adjusts the origin by the appropriate amount, and moves the cursor to the
beginning or end of the line.
2017-08-15 21:11:04 +02:00
Roi Martin
4e9ce9a8e2 Revert changes in *View.MoveCursor 2016-10-11 10:18:38 +02:00
Roi Martin
8d16527c1d Fix edition mode when Editable = true
Fix issue #53
2016-10-11 07:37:42 +02:00
Roi Martin
4aed924ceb Editor refactoring. Add doc. Simplify _examples. 2016-01-30 02:36:10 +01:00
Roi Martin
faa12e105a Full mouse support. Add mouse example. Make golint happy.
- Full mouse support based on hazbo's initial work.
- Add example to show mouse support.
- Fix comments, naming conventions, etc. to make golint happy.
2016-01-23 16:07:42 +01:00
Roi Martin
e2590f1300 Decouple edition mode via Editor interface 2015-02-24 13:05:33 +01:00
Roi Martin
4dfc4973e0 Decouple edition mode 2015-02-24 00:26:26 +01:00
Roi Martin
4ad26839aa Mark views as tainted when they are resized 2015-02-23 16:37:49 +01:00
Roi Martin
60388aa361 Add comments to View.editDelete() 2015-02-23 11:13:25 +01:00
Roi Martin
37e2387e4a Minor refactoring 2015-02-23 11:09:31 +01:00
Roi Martin
e009f09eb8 Fix detection of start/end of line in View.editDelete() 2015-02-23 11:07:08 +01:00
Roi Martin
ca0f876ab6 Fix cursor behaviour of View.editDelete() 2015-02-23 10:20:22 +01:00
Roi Martin
e63645a119 Support full edition mode in non-wrapping views 2015-02-23 02:01:49 +01:00
Roi Martin
622e7cbdf9 Initial implementation of the full edition mode 2015-02-23 00:34:41 +01:00
Roi Martin
f53d985c4e Break lines on enter when needed 2015-02-14 20:17:44 +01:00
Roi Martin
311dedb655 Move handleEdit to edit.go 2015-02-13 18:40:45 +01:00
Roi Martin
708261503b Fix edit mode when View.Wrap is enabled 2015-02-04 01:59:03 +01:00
Roi Martin
98a2fe7a6a Add missing LICENSE header. Fix typo in LICENSE headers 2015-01-31 20:39:43 +01:00
Roi Martin (@nibble_ds)
60c77d0e40 Refactoring of edit functions 2014-01-23 21:26:53 +01:00
Roi Martin (@nibble_ds)
79ed19102a Add comments 2014-01-23 00:00:07 +01:00
Roi Martin (@nibble_ds)
aeeaaa4951 Add LICENSE header to edit.go 2014-01-22 23:44:42 +01:00
Roi Martin (@nibble_ds)
4b396e1d8b Move edit functions to edit.go 2014-01-22 23:44:08 +01:00