]> git.mdlowis.com Git - projs/tide.git/commitdiff
genral cleanup
authorMichael D. Lowis <mike.lowis@gentex.com>
Fri, 24 Mar 2017 18:40:56 +0000 (14:40 -0400)
committerMichael D. Lowis <mike.lowis@gentex.com>
Fri, 24 Mar 2017 18:40:56 +0000 (14:40 -0400)
editrc
lib/win.c
term.c

diff --git a/editrc b/editrc
index b3686c22f140d0512f81087907ab5d040a7027ad..3c5fbff9541b4876bba680154c07451964ee18ac 100644 (file)
--- a/editrc
+++ b/editrc
@@ -3,9 +3,9 @@
 # Tag Lines
 #------------------------------------------------------------------------------
 
-csrc(){ echo -n "Quit Save !term >lines |bc |uc {>Grep  } Find "; }
-src(){ echo -n "Quit Save !term >lines |bcmt |ucmt {>Grep  } Find "; }
-ptext(){ echo -n "Quit Save !term |fmt >words {>Grep  } Find "; }
+csrc(){ echo -n "Quit Save Eol rctags !term >lines |bc |uc {>Grep  } Find "; }
+src(){ echo -n "Quit Save Eol rctags !term >lines |bcmt |ucmt {>Grep  } Find "; }
+ptext(){ echo -n "Quit Save Eol rctags !term |fmt >words {>Grep  } Find "; }
 
 # setup default tags line
 export EDITTAGS="$(csrc)"
@@ -19,6 +19,9 @@ term(){ (nohup st)& }
 # Regex search
 Grep(){ grep -n "$@"; }
 
+# Refresh ctags file
+rctags(){ ctags -R --exclude="Build"; }
+
 # Word and Line Counts
 words(){ wc -w; }
 lines(){ wc -l; }
index 939bfa969b7a738c281611635ccdf7b3ddec0144..165a80618a10da422124702b5d12cbfdee7c0870 100644 (file)
--- a/lib/win.c
+++ b/lib/win.c
@@ -229,7 +229,7 @@ static void onclick(MouseAct act, MouseBtn btn, int x, int y) {
                 break;
             case MOUSE_BTN_MIDDLE: 
                 onscroll((double)(y - Regions[SCROLL].y) /
-                         (double)(Regions[SCROLL].height - Regions[SCROLL].y()));
+                         (double)(Regions[SCROLL].height - Regions[SCROLL].y));
                 break;
             case MOUSE_BTN_RIGHT:
                 view_scroll(win_view(EDIT), +row); 
diff --git a/term.c b/term.c
index cbe35db40fcc3de23359dfe95666d02356e2a98e..bc52920811a48189efc2ce8357c9cc8f9f86a65f 100644 (file)
--- a/term.c
+++ b/term.c
@@ -5,8 +5,6 @@
 #include <ctype.h>
 #include <win.h>
 
-/* Mouse Handling
- *****************************************************************************/
 void onmouseleft(WinRegion id, size_t count, size_t row, size_t col) {
 
 }
@@ -19,24 +17,10 @@ void onmouseright(WinRegion id, size_t count, size_t row, size_t col) {
 
 }
 
-//MouseConfig* MouseHandlers[NREGIONS] = {
-//    [EDIT] = &(MouseConfig){
-//        .left   = mouse_left,
-//        .middle = mouse_middle,
-//        .right  = mouse_right
-//    }
-//};
-
 void onscroll(double percent) {
 
 }
 
-/* Keyboard Handling
- *****************************************************************************/
-
-/* Main Routine
- *****************************************************************************/
 void onupdate(void) {
 }