Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

documentation error for notepad.allocateMarker() function #264

Open
alankilborn opened this issue Dec 22, 2022 · 1 comment
Open

documentation error for notepad.allocateMarker() function #264

alankilborn opened this issue Dec 22, 2022 · 1 comment

Comments

@alankilborn
Copy link

alankilborn commented Dec 22, 2022

image

The highlighted area should be int.

Original discussion: https://community.notepad-plus-plus.org/post/82683

Error is present in 2.0.0.0 and 3.10.4

@alankilborn
Copy link
Author

alankilborn commented Dec 22, 2022

Once all possible markers have been allocated, None is returned if the function is called subsequently. Not sure if that should be added to the documentation, but it seems likely. Before I noticed that, my thinking was to anticipate -1 as the return value when no more were available to be allocated.

Reference script:

for j in range(100):
    my_marker_id = notepad.allocateMarker(1)
    print(my_marker_id)
    if my_marker_id is None: break

outputs:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant