[vim] - patchlevel 812
Karsten Hopp
karsten at fedoraproject.org
Mon Feb 18 13:39:14 UTC 2013
commit 35e78d71226d959f0eb0a9fcc12f4d0a38bc716c
Author: Karsten Hopp <karsten at redhat.com>
Date: Mon Feb 18 15:38:06 2013 +0100
- patchlevel 812
7.3.812 | 86 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 86 insertions(+), 0 deletions(-)
---
diff --git a/7.3.812 b/7.3.812
new file mode 100644
index 0000000..83b9d2f
--- /dev/null
+++ b/7.3.812
@@ -0,0 +1,86 @@
+To: vim_dev at googlegroups.com
+Subject: Patch 7.3.812
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.3.812
+Problem: When 'indentexpr' moves the cursor "curswant" not restored.
+Solution: Restore "curswant". (Sung Pae)
+Files: src/misc1.c
+
+
+*** ../vim-7.3.811/src/misc1.c 2013-01-17 17:01:56.000000000 +0100
+--- src/misc1.c 2013-02-13 16:04:08.000000000 +0100
+***************
+*** 8809,8820 ****
+ get_expr_indent()
+ {
+ int indent;
+! pos_T pos;
+ int save_State;
+ int use_sandbox = was_set_insecurely((char_u *)"indentexpr",
+ OPT_LOCAL);
+
+! pos = curwin->w_cursor;
+ set_vim_var_nr(VV_LNUM, curwin->w_cursor.lnum);
+ if (use_sandbox)
+ ++sandbox;
+--- 8809,8826 ----
+ get_expr_indent()
+ {
+ int indent;
+! pos_T save_pos;
+! colnr_T save_curswant;
+! int save_set_curswant;
+ int save_State;
+ int use_sandbox = was_set_insecurely((char_u *)"indentexpr",
+ OPT_LOCAL);
+
+! /* Save and restore cursor position and curswant, in case it was changed
+! * via :normal commands */
+! save_pos = curwin->w_cursor;
+! save_curswant = curwin->w_curswant;
+! save_set_curswant = curwin->w_set_curswant;
+ set_vim_var_nr(VV_LNUM, curwin->w_cursor.lnum);
+ if (use_sandbox)
+ ++sandbox;
+***************
+*** 8829,8835 ****
+ * command. */
+ save_State = State;
+ State = INSERT;
+! curwin->w_cursor = pos;
+ check_cursor();
+ State = save_State;
+
+--- 8835,8843 ----
+ * command. */
+ save_State = State;
+ State = INSERT;
+! curwin->w_cursor = save_pos;
+! curwin->w_curswant = save_curswant;
+! curwin->w_set_curswant = save_set_curswant;
+ check_cursor();
+ State = save_State;
+
+*** ../vim-7.3.811/src/version.c 2013-02-13 15:53:15.000000000 +0100
+--- src/version.c 2013-02-13 16:01:52.000000000 +0100
+***************
+*** 727,728 ****
+--- 727,730 ----
+ { /* Add new patch number below this line */
++ /**/
++ 812,
+ /**/
+
+--
+Living on Earth includes an annual free trip around the Sun.
+
+ /// Bram Moolenaar -- Bram at 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 ///
More information about the scm-commits
mailing list