6d1be48990
Copy from editors/joe based on submit request 23134 from user psmt OBS-URL: https://build.opensuse.org/request/show/23134 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/joe?expand=0&rev=10
19 lines
650 B
Diff
19 lines
650 B
Diff
Index: uformat.c
|
|
===================================================================
|
|
--- uformat.c.orig 2009-10-22 17:55:13.000000000 +0200
|
|
+++ uformat.c 2009-10-22 18:32:40.674592919 +0200
|
|
@@ -564,10 +564,12 @@ int uformat(BW *bw)
|
|
if (!bw->o.autoindent) {
|
|
/* Don't indent second line of single-line paragraphs if autoindent is off */
|
|
int x = zlen(indents);
|
|
+ int start = x;
|
|
while (x && (indents[x - 1] == ' ' || indents[x - 1] == '\t'))
|
|
indents[--x] = 0;
|
|
if (x) {
|
|
- indents[x++] = ' ';
|
|
+ if(x < start)
|
|
+ indents[x++] = ' ';
|
|
indents[x] = 0;
|
|
}
|
|
indent = txtwidth1(bw->o.charmap, bw->o.tab, indents, x);
|