summaryrefslogtreecommitdiffstats
path: root/src/context.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2020-03-24 21:27:13 -0400
committerJiayi Zhao <jeff.no.zhao@gmail.com>2020-03-24 21:39:40 -0400
commit77685885d5f8a8dfd1889245cf1bd6d783503620 (patch)
tree031ee7b504be4e49ddedc57c2eac352079a83066 /src/context.rs
parentc894688fe20ad9f886ffaccb833a1f74c28db125 (diff)
textfield cursor working correctly
- this fixes boundary issues and cursor not staying in place - also fix issue with quit not making sure all io workers are done
Diffstat (limited to 'src/context.rs')
-rw-r--r--src/context.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/context.rs b/src/context.rs
index 9f357b5..6801e69 100644
--- a/src/context.rs
+++ b/src/context.rs
@@ -10,6 +10,7 @@ pub struct JoshutoContext {
pub curr_tab_index: usize,
pub tabs: Vec<JoshutoTab>,
pub worker_queue: VecDeque<IOWorkerThread>,
+ pub worker_busy: bool,
pub worker_msg: Option<String>,
pub message_queue: VecDeque<String>,
@@ -25,6 +26,7 @@ impl JoshutoContext {
curr_tab_index: 0,
tabs: Vec::new(),
worker_queue: VecDeque::with_capacity(10),
+ worker_busy: false,
worker_msg: None,
message_queue: VecDeque::with_capacity(4),
events: Events::new(),