Track left to right for selections based on actual mouse positions

Cant use the selection boundaries as these can be programmatically
altered when extending selection by word or line.
This commit is contained in:
Kovid Goyal
2020-02-25 20:03:14 +05:30
parent 2f24588c66
commit 9c486f6e69
5 changed files with 62 additions and 63 deletions
-1
View File
@@ -35,7 +35,6 @@
#define zero_at_i(array, idx) memset((array) + (idx), 0, sizeof((array)[0]))
#define zero_at_ptr(p) memset((p), 0, sizeof((p)[0]))
#define zero_at_ptr_count(p, count) memset((p), 0, (count) * sizeof((p)[0]))
#define memcpy_ptr(dest, src) memcpy((dest), (src), sizeof((src)[0]))
void log_error(const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
#define fatal(...) { log_error(__VA_ARGS__); exit(EXIT_FAILURE); }