+# 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
}
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);
}