Nathan VanBenschoten
a193146c91
Fix deadlock on rewrite of opHistory when history limit is reached ( #69 )
...
It is possible for `opHistory.Rewrite` to be called from
`opHistory.historyUpdatePath`. This is problematic, because both methods
grab a lock, and Mutexes in go are not reentrant. This change pulls out
the logic in Rewrite into `opHistory.rewriteLocked`, and retains the
public facing method.
2016-08-12 10:11:21 +08:00
John Cramb
a0c5244a21
added fd mutex to prevent data race on history updates with closing the history file ( #66 )
2016-07-29 11:49:51 +08:00
chzyer
dc5da28fbf
[history] fix bug that check equals with previous command ( #49 )
2016-04-21 14:10:50 +08:00
chzyer
6cc043de37
Fix #43 , remove sub-package for gopkg compatiblity
2016-04-05 09:55:46 +08:00
chzyer
218eb7fff6
[example] Add a IM example
2016-03-31 10:55:53 +08:00
Cheney
6368045a0b
report error if it save history fail
2016-02-18 08:41:35 +08:00
Cheney
00e1a8e95a
#19 fixed mass history
2016-02-17 22:20:03 +08:00
Cheney
07485bbd8f
update history interfaces. and support DisableAutoSaveHistory
2016-02-16 16:56:57 +08:00
Cheney
71e9536f4b
add password support
2015-11-20 20:56:42 +08:00
Cheney
aec0cc08d9
fix history rewrite fd close
2015-10-08 18:14:59 +08:00
Cheney
9f55547f9b
fix history rewrite replace origin file
2015-10-08 18:11:21 +08:00
Cheney
55809b401d
add runes package
2015-10-04 21:56:34 +08:00
Cheney
bfa8c1dfdb
add history limitation
2015-10-04 15:23:00 +08:00
Cheney
593678baa5
refactor
2015-09-27 10:50:14 +08:00
Cheney
bc96fada95
fix fwd search crash
2015-09-23 14:22:22 +08:00
Cheney
3c4b5dd53d
rename
2015-09-23 13:52:26 +08:00
Cheney
41404cd3f9
fix fwd/bck search
2015-09-23 11:26:20 +08:00
Cheney
a7f498f047
fix fwd/bck search
2015-09-23 11:10:36 +08:00
Cheney
3b1cf6b8fb
add fwd/bck search
2015-09-22 23:01:15 +08:00
Cheney
3f23122fec
support save history item
2015-09-22 18:16:24 +08:00
Cheney
9c65cb7ccf
fix runebuffer refresh
2015-09-21 22:27:40 +08:00
Cheney
772978399e
improve history
2015-09-21 21:00:48 +08:00
Cheney
c16e43d258
refactor
2015-09-21 13:30:10 +08:00
Cheney
6642cc6506
support history
2015-09-21 13:14:10 +08:00