Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
Vim
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Someone-Else
Vim
Commits
badfde1b
Commit
badfde1b
authored
15 years ago
by
Bram Moolenaar
Browse files
Options
Downloads
Patches
Plain Diff
updated for version 7.2-268
parent
8701cd6a
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/if_python.c
+8
-1
8 additions, 1 deletion
src/if_python.c
src/version.c
+2
-0
2 additions, 0 deletions
src/version.c
with
10 additions
and
1 deletion
src/if_python.c
+
8
−
1
View file @
badfde1b
...
...
@@ -2058,6 +2058,7 @@ WindowSetattr(PyObject *self, char *name, PyObject *val)
{
long
lnum
;
long
col
;
long
len
;
if
(
!
PyArg_Parse
(
val
,
"(ll)"
,
&
lnum
,
&
col
))
return
-
1
;
...
...
@@ -2072,10 +2073,16 @@ WindowSetattr(PyObject *self, char *name, PyObject *val)
if
(
VimErrorCheck
())
return
-
1
;
/* NO CHECK ON COLUMN - SEEMS NOT TO MATTER */
/* When column is out of range silently correct it. */
len
=
STRLEN
(
ml_get_buf
(
this
->
win
->
w_buffer
,
lnum
,
FALSE
));
if
(
col
>
len
)
col
=
len
;
this
->
win
->
w_cursor
.
lnum
=
lnum
;
this
->
win
->
w_cursor
.
col
=
col
;
#ifdef FEAT_VIRTUALEDIT
this
->
win
->
w_cursor
.
coladd
=
0
;
#endif
update_screen
(
VALID
);
return
0
;
...
...
This diff is collapsed.
Click to expand it.
src/version.c
+
2
−
0
View file @
badfde1b
...
...
@@ -676,6 +676,8 @@ static char *(features[]) =
static
int
included_patches
[]
=
{
/* Add new patch number below this line */
/**/
268
,
/**/
267
,
/**/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment