annotate src/osdef2.h.in @ 32838:eaf22d1df3c1 v9.0.1731

patch 9.0.1731: blockwise Visual highlight not working with virtual text Commit: https://github.com/vim/vim/commit/6e940d9a1d4ff122aad1b0821c784a60b507d45c Author: zeertzjq <zeertzjq@outlook.com> Date: Thu Aug 17 23:21:40 2023 +0200 patch 9.0.1731: blockwise Visual highlight not working with virtual text Problem: blockwise Visual highlight not working with virtual text Solution: Reset the correct variable at the end of virtual selection and Check for double-width char inside virtual text. closes: #12606 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
author Christian Brabandt <cb@256bit.org>
date Thu, 17 Aug 2023 23:30:04 +0200
parents 9f3fd7937957
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 * osdef2.h.in - See osdef1.h.in for a description.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4
7722
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
5 extern int remove(const char *);
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
6 extern int rename(const char *, const char *);
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
7 extern int free(char *);
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
8 extern char *malloc(unsigned int);
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
9 extern char *realloc(char *, int);
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
10 extern char *getenv(char *);
13264
9f3fd7937957 patch 8.0.1506: new version of HP NonStop (Tandem) doesn't like a header
Christian Brabandt <cb@256bit.org>
parents: 7722
diff changeset
11 #ifndef __TANDEM
7722
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
12 extern int setenv(char *, char *, int);
13264
9f3fd7937957 patch 8.0.1506: new version of HP NonStop (Tandem) doesn't like a header
Christian Brabandt <cb@256bit.org>
parents: 7722
diff changeset
13 #else
9f3fd7937957 patch 8.0.1506: new version of HP NonStop (Tandem) doesn't like a header
Christian Brabandt <cb@256bit.org>
parents: 7722
diff changeset
14 extern int setenv(const char *, const char *, int);
9f3fd7937957 patch 8.0.1506: new version of HP NonStop (Tandem) doesn't like a header
Christian Brabandt <cb@256bit.org>
parents: 7722
diff changeset
15 #endif
7722
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
16 extern int putenv(const char *);
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
1076
17b9587ff6d5 updated for version 7.0-202
vimboss
parents: 7
diff changeset
18 #ifndef __TANDEM
7722
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
19 extern int gethostname(char *, int);
1076
17b9587ff6d5 updated for version 7.0-202
vimboss
parents: 7
diff changeset
20 #endif
7722
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
21 extern void perror(char *);
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
1076
17b9587ff6d5 updated for version 7.0-202
vimboss
parents: 7
diff changeset
23 #ifndef __TANDEM
7722
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
24 extern int sleep(int);
1076
17b9587ff6d5 updated for version 7.0-202
vimboss
parents: 7
diff changeset
25 #endif
7722
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
26 extern int usleep(unsigned int);
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
27 extern unsigned int alarm(unsigned int);
1076
17b9587ff6d5 updated for version 7.0-202
vimboss
parents: 7
diff changeset
28 #ifndef __TANDEM
7722
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
29 extern int chdir(char *);
1076
17b9587ff6d5 updated for version 7.0-202
vimboss
parents: 7
diff changeset
30 #endif
7722
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
31 extern int fchdir(int);
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 #ifndef stat /* could be redefined to stat64() */
7722
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
33 extern int stat(const char *, struct stat *);
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 #ifndef lstat /* could be redefined to lstat64() */
7722
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
36 extern int lstat(const char *, struct stat *);
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 #endif
7722
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
38 extern int fstat(int, struct stat *);
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
39 extern int open(const char *, int, ...);
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
40 extern int close(int);
1076
17b9587ff6d5 updated for version 7.0-202
vimboss
parents: 7
diff changeset
41 #ifndef __TANDEM
7722
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
42 extern int read(int, char *, size_t);
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
43 extern int write(int, char *, size_t);
1076
17b9587ff6d5 updated for version 7.0-202
vimboss
parents: 7
diff changeset
44 #endif
7722
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
45 extern int pipe(int *);
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
46 extern off_t lseek(int, off_t, int);
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
47 extern void sync(void);
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
48 extern uid_t getuid(void);
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
49 extern gid_t getgid(void);
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
50 extern void qsort(void *, size_t, size_t, int (*)(const void *, const void *));
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
7722
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
52 extern int isatty(int);
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
53 extern int getpid(void);
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
54 extern int dup(int);
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
55 extern int unlink(const char *);
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
56 extern int link(const char *, const char *);
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
57 extern int mkdir(const char *, mode_t);
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
58 extern int rmdir(const char *);
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59
7722
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
60 extern int tgetent(char *, char *);
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
61 extern int tgetnum(char *);
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
62 extern int tgetflag(char *);
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
63 extern char *tgoto(char *, int, int);
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
64 extern int tputs(char *, int, int (*)(int));
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 #ifdef HAVE_TERMIOS_H
7722
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
67 struct termios; /* for tcgetattr() */
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
68 extern int tcgetattr(int, struct termios *);
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
69 extern int tcsetattr(int, int, const struct termios *);
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 #ifdef HAVE_SYS_STATFS_H
7722
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
73 struct statfs; /* for fstatfs() */
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
74 extern int fstatfs(int, struct statfs *, int, int);
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 #ifdef HAVE_GETTIMEOFDAY
7722
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
78 struct timeval; /* for gettimeofday() */
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
79 struct timezone; /* for gettimeofday() */
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
80 extern int gettimeofday(struct timeval *tp, struct timezone *tzp);
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
81 extern time_t time(time_t *);
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 #ifdef HAVE_GETPWNAM
7722
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
85 struct passwd; /* for getpwnam() */
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
86 extern struct passwd *getpwnam(const char *);
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 #ifdef USE_TMPNAM
7722
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
90 extern char *tmpnam(char *);
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 #else
7722
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
92 extern char *mktemp(char *);
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 #ifdef ISC
7722
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
96 extern int _Xmblen(char const *, size_t);
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 /* This is different from the header but matches mblen() */
7722
c4f8b1d48f20 commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Christian Brabandt <cb@256bit.org>
parents: 1076
diff changeset
99 extern int _Xmblen(char *, size_t);
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 #endif