From 12782b36d80547f344a15fa4c66d8b1493a6e120 Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: Mar 13 2015 17:00:03 +0000 Subject: - patchlevel 659 --- diff --git a/7.4.659 b/7.4.659 new file mode 100644 index 0000000..2806ab3 --- /dev/null +++ b/7.4.659 @@ -0,0 +1,86 @@ +To: vim_dev@googlegroups.com +Subject: Patch 7.4.659 +Fcc: outbox +From: Bram Moolenaar +Mime-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit +------------ + +Patch 7.4.659 +Problem: When 'ruler' is set the preferred column is reset. (Issue 339) +Solution: Don't set curswant when redrawing the status lines. +Files: src/option.c + + +*** ../vim-7.4.658/src/option.c 2015-02-10 19:20:33.731792076 +0100 +--- src/option.c 2015-03-13 11:19:50.564937256 +0100 +*************** +*** 7193,7199 **** + #endif + + if (curwin->w_curswant != MAXCOL +! && (options[opt_idx].flags & (P_CURSWANT | P_RCLR)) != 0) + curwin->w_set_curswant = TRUE; + + #ifdef FEAT_GUI +--- 7193,7199 ---- + #endif + + if (curwin->w_curswant != MAXCOL +! && (options[opt_idx].flags & (P_CURSWANT | P_RALL)) != 0) + curwin->w_set_curswant = TRUE; + + #ifdef FEAT_GUI +*************** +*** 8203,8209 **** + + comp_col(); /* in case 'ruler' or 'showcmd' changed */ + if (curwin->w_curswant != MAXCOL +! && (options[opt_idx].flags & (P_CURSWANT | P_RCLR)) != 0) + curwin->w_set_curswant = TRUE; + check_redraw(options[opt_idx].flags); + +--- 8203,8209 ---- + + comp_col(); /* in case 'ruler' or 'showcmd' changed */ + if (curwin->w_curswant != MAXCOL +! && (options[opt_idx].flags & (P_CURSWANT | P_RALL)) != 0) + curwin->w_set_curswant = TRUE; + check_redraw(options[opt_idx].flags); + +*************** +*** 8738,8744 **** + + comp_col(); /* in case 'columns' or 'ls' changed */ + if (curwin->w_curswant != MAXCOL +! && (options[opt_idx].flags & (P_CURSWANT | P_RCLR)) != 0) + curwin->w_set_curswant = TRUE; + check_redraw(options[opt_idx].flags); + +--- 8738,8744 ---- + + comp_col(); /* in case 'columns' or 'ls' changed */ + if (curwin->w_curswant != MAXCOL +! && (options[opt_idx].flags & (P_CURSWANT | P_RALL)) != 0) + curwin->w_set_curswant = TRUE; + check_redraw(options[opt_idx].flags); + +*** ../vim-7.4.658/src/version.c 2015-03-08 14:48:32.959696341 +0100 +--- src/version.c 2015-03-13 11:21:31.255788185 +0100 +*************** +*** 743,744 **** +--- 743,746 ---- + { /* Add new patch number below this line */ ++ /**/ ++ 659, + /**/ + +-- +"A mouse can be just as dangerous as a bullet or a bomb." + (US Representative Lamar Smith, R-Texas) + + /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ +/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ +\\\ an exciting new programming language -- http://www.Zimbu.org /// + \\\ help me help AIDS victims -- http://ICCF-Holland.org ///