Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Kevin Lyda
vim-cobol
Commits
d7895e40
Commit
d7895e40
authored
Sep 20, 2017
by
Kevin Lyda
💬
Browse files
Sigh, actually display the error better.
parent
bb157ab1
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugin/cobol.py
View file @
d7895e40
...
...
@@ -55,8 +55,8 @@ def cobol_Renumber():
try
:
last_line_no
=
int
(
lines
[
i
][:
6
])
except
ValueError
:
print
(
'
Malformed
line
(
%d
) -
has non-numbers in columns 1-6'
%
i
-
1
)
return
print
(
'
Error:
line %d has non-numbers in columns 1-6'
%
(
i
+
1
)
)
return
if
gap
:
delta
=
math
.
floor
((
last_line_no
-
gap
[
'last_line_no'
])
/
(
i
-
gap
[
'i'
]
+
1
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment