[dev] [PATCH] Fix indentation.

2015-05-02 Thread noname
--- st.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/st.c b/st.c index d954288..bf1c94f 100644 --- a/st.c +++ b/st.c @@ -1078,8 +1078,8 @@ selrequest(XEvent *e) { xev.selection = xsre->selection; xev.target = xsre->target; xev.time = xsre->ti

[dev] [PATCH 09/10] Remove unnecessary tsetdirt.

2015-05-02 Thread noname
--- st.c | 1 - 1 file changed, 1 deletion(-) diff --git a/st.c b/st.c index 9b1771d..e30f111 100644 --- a/st.c +++ b/st.c @@ -1131,7 +1131,6 @@ brelease(XEvent *e) { } else selclear(NULL); sel.mode = SEL_IDLE; - tsetdirt(sel.n

[dev] [PATCH 10/10] Fix empty selection highlighting bug.

2015-05-02 Thread noname
When user clicks LMB, one character is selected, but will not be copied to selection until the user moves cursor a bit. Therefore, the character should not be highlighted as selected yet. Before the patch, the trick was not to mark line as dirty to avoid highlighting it. However, if user has alrea