]> git.mdlowis.com Git - projs/tide.git/commitdiff
fixed a bug in search selection and updated TODO
authorMike Lowis <mike.lowis@gentex.com>
Mon, 24 Oct 2016 14:15:57 +0000 (10:15 -0400)
committerMike Lowis <mike.lowis@gentex.com>
Mon, 24 Oct 2016 14:15:57 +0000 (10:15 -0400)
TODO.md
mouse.c

diff --git a/TODO.md b/TODO.md
index d4f85528633e16ca403e334dbff699e863456183..1f9d2cb70b9991ec726e70f7d3057dafe5900acd 100644 (file)
--- a/TODO.md
+++ b/TODO.md
@@ -1,5 +1,15 @@
+# Implementation Tweaks and Bug Fixes
+
+* block selection should handle brace-balancing
+* Selecting big words should not wrap newlines
+* Right click should fetch file if it exists, search otherwise
+    * urls should open in web
+    * directories in browse?
+
 # Internals and Miscellaneous
 
+* Mode to expand tabs to spaces
+* change indent of dot
 * Calculate line numbers and keep up to date while editing
 * Support multiple buffers
 * Implement undo/redo log
diff --git a/mouse.c b/mouse.c
index 89b378e9540dd9bfe69ca0ecec798c14921757fd..63af1366449a846450b4c8a6c29e2cd052d43d7c 100644 (file)
--- a/mouse.c
+++ b/mouse.c
@@ -48,7 +48,8 @@ void selection(MouseEvent* mevnt) {
 }
 
 void search(MouseEvent* mevnt) {
-    if (DotBeg == DotEnd) {
+    unsigned clickpos = screen_getoff(&Buffer, DotEnd, mevnt->y, mevnt->x);
+    if (DotBeg == DotEnd || clickpos < DotBeg || clickpos > DotEnd) {
         move_cursor(mevnt);
         selection(mevnt);
     }