diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 76767f0..023cf69 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,10 +2,7 @@ - - - - @@ -228,7 +233,7 @@ - + @@ -242,13 +247,6 @@ - - - - - - - @@ -259,10 +257,17 @@ + + + + + + + - - + + diff --git a/notepostcli/notepost.py b/notepostcli/notepost.py index c61ef24..6caf6cb 100755 --- a/notepostcli/notepost.py +++ b/notepostcli/notepost.py @@ -113,7 +113,7 @@ def editnote(note): def editmenu(): global notes rows, columns = os.popen('stty size', 'r').read().split() - linelength = int(columns) - 10 + linelength = int(columns) - 5 clearscreen() loadnotes() i = 1 @@ -129,9 +129,11 @@ def editmenu(): if linecount > 5: print("\n(" + str(len(note["content"].splitlines())) + " more lines" + ")", end='') break - print("\n " + line[0:linelength].ljust(linelength), end='') + print("\n " + line[0:linelength].ljust(linelength), end='') if len(line) > linelength: print("...", end='') + else: + print(" ", end='') linecount += 1 i += 1 resetcolor()