Without this, sources with long lines or variable names may overwrite panel frames, or even overrun to the following line. There's currently no way to scroll left/right in the views, so that should be added to handle these cases. This commit includes fixing constness of some Window functions, and also makes PutCStringTruncated() consistent with the added printf-like variant to take the padding as the first argument (can't add it after the format to the printf-like function). Differential Revision: https://reviews.llvm.org/D85123
8 lines
482 B
C
8 lines
482 B
C
int main(int argc, char **argv) {
|
|
// This is to be viewed in a 80-column terminal, so make the line below more
|
|
// than 120 characters wide, to span at least two lines.
|
|
int a_variable_with_a_very_loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong_name = 22;
|
|
int shortvar = 1;
|
|
return a_variable_with_a_very_loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong_name; // Break here
|
|
}
|