From: Michael D. Lowis Date: Fri, 21 Jul 2017 13:09:45 +0000 (-0400) Subject: Added logic to highlight line when address provided with file path X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=598146c9c1466474c2f3523b384115a735d07149;p=projs%2Ftide.git Added logic to highlight line when address provided with file path --- diff --git a/TODO.md b/TODO.md index d1d6d32..0efafa6 100644 --- a/TODO.md +++ b/TODO.md @@ -5,7 +5,6 @@ Up Next: * B2+B1 click executes command with selection as argument * right click to fetch file or line * Run commands in the background and don't block the main thread. -* Add a separate config option for pty tags * update man pages with new functionality * moving from tags to the gutter does not transfer focus to edit region diff --git a/lib/view.c b/lib/view.c index c0124fc..2232ce8 100644 --- a/lib/view.c +++ b/lib/view.c @@ -41,6 +41,8 @@ void view_init(View* view, char* file, void (*errfn)(char*)) { buf_init(&(view->buffer), errfn); if (file) { view_jumpto(view, false, buf_load(&(view->buffer), file)); + view_eol(view, false); + view_selctx(view); colors_init(view->buffer.path); } } diff --git a/tide-fetch.rb b/tide-fetch.rb index 6853908..287b4ae 100755 --- a/tide-fetch.rb +++ b/tide-fetch.rb @@ -38,7 +38,6 @@ end def open_with(app) app = Apps[app] || ENV[app.to_s.upcase] - puts "app: " + app raise RuleError.new() if not app spawn("#{app} #{$item}") end