To: vim-dev@vim.org Subject: Patch 5.6.021 Fcc: outbox From: Bram Moolenaar ------------ Patch 5.6.021 Problem: When 'selection' is "exclusive", a double mouse click in Insert mode doesn't select last char in line. (Lutz) Solution: Allow leaving the cursor on the NUL past the line in this case. Files: src/edit.c *** ../vim-5.6.20/src/edit.c Thu Mar 23 17:46:03 2000 --- src/edit.c Sat Mar 25 16:28:45 2000 *************** *** 4609,4615 **** */ if ( curwin->w_cursor.col != 0 && (!restart_edit ! || gchar_cursor() == NUL) #ifdef RIGHTLEFT && !revins_on #endif --- 4609,4615 ---- */ if ( curwin->w_cursor.col != 0 && (!restart_edit ! || (gchar_cursor() == NUL && !VIsual_active)) #ifdef RIGHTLEFT && !revins_on #endif *** ../vim-5.6.20/src/version.c Sat Mar 25 16:34:41 2000 --- src/version.c Sat Mar 25 16:34:20 2000 *************** *** 420,421 **** --- 420,423 ---- { /* Add new patch number below this line */ + /**/ + 21, /**/ -- GALAHAD hurries to the door and pushes through it. As he leaves the room we CUT TO the reverse to show that he is now in a room full of bathing and romping GIRLIES, all innocent, wide-eyed and beautiful. They smile enchantingly at him as he tries to keep walking without being diverted by the lovely sights assaulting his eyeballs. "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /-/-- Bram Moolenaar --- Bram@moolenaar.net --- http://www.moolenaar.net --\-\ \-\-- Vim: http://www.vim.org ---- ICCF Holland: http://www.vim.org/iccf --/-/