From 35361e1f4005e31c1d34e46cfeae4a64c3e879d8 Mon Sep 17 00:00:00 2001 From: jluehrs2 Date: Wed, 30 Apr 2008 12:55:15 -0500 Subject: sigh... why can i not remember that not all operators are destructive... this will break text objects with boundaries at the ends or beginnings of lines again --- vimrc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/vimrc b/vimrc index 18446c3..be8d4f0 100644 --- a/vimrc +++ b/vimrc @@ -307,13 +307,7 @@ function Textobj(char, callback) endfor let objlength -= 1 endif - if endcol == 0 - normal! J - endif call cursor(startline, startcol) - if startcol > strlen(getline(startline)) - normal! J - endif exe 'normal! '.a:operator.objlength.' ' if a:operator == 'c' -- cgit v1.2.3-54-g00ecf